G
Guest
Dim conn As New SqlConnection
Dim comm As New SqlCommand
conn.ConnectionString = "Data Source =(local);Initial
Catalog=Olympia;Integrated Security=True;"
conn.Open()
comm.Connection = conn
Is there anything wrong with the above codes? Are there any solutions to the
stated error? Because when I run the program, I receive the following error,
which points to line 4 of the above codes (conn.Open()):
"An unhandled exception of type 'System.Data.sqlClient.sqlException'
occurred in system.data.dll'. Additional Information: System error."
Dim comm As New SqlCommand
conn.ConnectionString = "Data Source =(local);Initial
Catalog=Olympia;Integrated Security=True;"
conn.Open()
comm.Connection = conn
Is there anything wrong with the above codes? Are there any solutions to the
stated error? Because when I run the program, I receive the following error,
which points to line 4 of the above codes (conn.Open()):
"An unhandled exception of type 'System.Data.sqlClient.sqlException'
occurred in system.data.dll'. Additional Information: System error."