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

Posts
1
Registration date
Tuesday January 15, 2013
Status
Member
Last seen
January 15, 2013
- - Latest reply: 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


See more 

2 replies

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

Say "Thank you" 4

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

CCM 5777 users have said thank you to us this month

Posts
2
Registration date
Sunday February 3, 2013
Status
Member
Last seen
February 3, 2013
0
Thank you
Follow this video tutorial. I just got it by a simple search.

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

Hope it helps you...
d