hi,

i am trying to run the code below:

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
i get the following error on the last line:
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