Hi
I'm trying for connectivity to MSSQLServer thru VB ado.net
Here's the code snippet :
Dim ConnStr As String
ConnStr = "Initial Catalog=pubs;Data Source=DSN;Integrated Security=SSPI;"
Dim ObjConn As SqlClient.SqlConnection
ObjConn = New SqlClient.SqlConnection(ConnStr)
ObjConn.Open()
Whenever I'm trying to execute to execute this code the programs runs forever and taking too much time to give a error msg which says "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll"
Can somebody tell me how to handle this ?
I'm trying for connectivity to MSSQLServer thru VB ado.net
Here's the code snippet :
Dim ConnStr As String
ConnStr = "Initial Catalog=pubs;Data Source=DSN;Integrated Security=SSPI;"
Dim ObjConn As SqlClient.SqlConnection
ObjConn = New SqlClient.SqlConnection(ConnStr)
ObjConn.Open()
Whenever I'm trying to execute to execute this code the programs runs forever and taking too much time to give a error msg which says "An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll"
Can somebody tell me how to handle this ?