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 LenkaRank #301 · 8.3K reputationPosted Sep 4, 2013, 11:25 PM EDT
check the attached sample.
just change the connection string in .cs and check
Kiran Kumar TalikotiRank #814 · 2.8K reputationPosted Sep 4, 2013, 11:31 PM EDT
Just Change The Connection String in App.config File and Give You Local System Path,
Prasenjit DeyRank #6,279 · 271 reputationPosted Sep 4, 2013, 11:51 PM EDT
}
Now you have to just change the connection string
Kavi sujaRank #6,237 · 272 reputationPosted Sep 5, 2013, 12:30 AM EDT
Sanjeeb,Kiran kumar,Prasenjit thank you all for your replies. I try this now..