Hi,
I want to done the following task : In windows form,I have button. when i click that button it will connect to database(SQL Server).How i express this? I want to display it in the label as "Database connected" , "Database not connected". Can anyone give me idea to do this?
Loading

Sanjeeb LenkaPosted Sep 5, 2013, 3:25 AM
check the attached sample.
just change the connection string in .cs and check
Kavi sujaPosted Sep 5, 2013, 4:30 AM
Sanjeeb,Kiran kumar,Prasenjit thank you all for your replies. I try this now..
Prasenjit DeyPosted Sep 5, 2013, 3:51 AM
}
Now you have to just change the connection string
Kiran Kumar TalikotiPosted Sep 5, 2013, 3:31 AM
Just Change The Connection String in App.config File and Give You Local System Path,