C#.net windows application connect to ms access [Closed]

Report
Posts
1
Registration date
Tuesday January 15, 2013
Status
Member
Last seen
January 15, 2013
-
winstongel
Posts
1
Registration date
Tuesday June 25, 2013
Status
Member
Last seen
June 25, 2013
-
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

Posts
1
Registration date
Tuesday June 25, 2013
Status
Member
Last seen
June 25, 2013
4
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
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 4154 users have said thank you to us this month

Posts
2
Registration date
Sunday February 3, 2013
Status
Member
Last seen
February 3, 2013

Follow this video tutorial. I just got it by a simple search.

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

Hope it helps you...
d