hi,
i am trying to run the code below:
i get the following error on the last line:Code:Dim objConnection As New SqlClient.SqlConnection("server=LAPTOP1-NICK\NETSDK;database=orders;trusted_connection=true") Dim objCommand As New SqlClient.SqlCommand("Select * from order", objConnection) Dim objReader As SqlClient.SqlDataReader objConnection.Open() objReader = objCommand.ExecuteReader
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll
Additional information: System error.
any idea what's wrong?
TIA
NICK




Reply With Quote