M
Mike
I've been trying to find examples where, if I made a typo in the "my
connectionstring", how can I gracefully exit the application. Otherwise the
user crashes hard. Say if the Server is down and it tries to make a
connection, what kind of code should I be writting to say the Database
doesn't exist.
VB.NET:
Imports System.Data.SqlClient
Dim oSQLConn As SqlConnection = New SqlConnection()
oSQLConn.ConnectionString="my connectionstring"
oSQLConn.Open()
connectionstring", how can I gracefully exit the application. Otherwise the
user crashes hard. Say if the Server is down and it tries to make a
connection, what kind of code should I be writting to say the Database
doesn't exist.
VB.NET:
Imports System.Data.SqlClient
Dim oSQLConn As SqlConnection = New SqlConnection()
oSQLConn.ConnectionString="my connectionstring"
oSQLConn.Open()