Database connetivity in vb.net with sql server2005
vb.net database with sql server
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dorababu MekaPosted Jan 3, 2013, 3:18 AM
//remaining code of yours
if you are retrieving from app.config file then you can use as follows
Dim FilePath As String = ConfigurationManager.AppSettings("ConnectionString")
sathish kumarPosted Jan 3, 2013, 12:50 AM
string dbconn= configurationManager.connectionstrings["Db"].connectionstring
sqlconnection conn= new sqlconnection(dbconn)
conn.open()
sqlcommand cmd=new sqlcommand("Query",conn)
cmd.executeNonquery()
conn.close()
Hope u can understand now.....