vb.net - My database connection fails what to do? -
connection string correct checked
dim connstring string = "data source=abc;initial catalog=testdatabase;integrated security=true" dim conn new sqlconnection(connectionstring) try conn.connectionstring = connstring conn.open() if con.state = connectionstate.closed messagebox.show("connection faild") end if catch ex exception messagebox.show("ok") end try
Comments
Post a Comment