C#.net windows application connect to ms access

Closed
new.kumar90 Posts 1 Registration date Tuesday January 15, 2013 Status Member Last seen January 15, 2013 - Jan 15, 2013 at 08:25 PM
winstongel Posts 1 Registration date Tuesday June 25, 2013 Status Member Last seen June 25, 2013 - Jun 25, 2013 at 03:56 AM
Hello,
Hi, Friends,

How to connect ms access database to c#.net windows application step by step process and mail me : new.kumar90@gmail.com. plz reply friends.


"KNOWLEDGE IS POWER"

THANKING YOU!!
Reply


2 replies

winstongel Posts 1 Registration date Tuesday June 25, 2013 Status Member Last seen June 25, 2013 4
Jun 25, 2013 at 03:56 AM
string connetionString = null;
 SqlConnection cnn ;
connetionString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserName;Password=Password" 

            cnn = new SqlConnection(connetionString);
            try
            {
                cnn.Open();
                MessageBox.Show ("Connection Open ! ");
                cnn.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Can not open connection ! ");
            }


more details:

http://csharp.net-informations.com/data-providers/csharp-sql-server-connection.htm

winston
4
apprabhu Posts 2 Registration date Sunday February 3, 2013 Status Member Last seen February 3, 2013
Feb 3, 2013 at 08:05 AM
Follow this video tutorial. I just got it by a simple search.

https://www.youtube.com/watch?v=HQuWC80sLBI

Hope it helps you...
d
0