I'm trying to get to grips with ado.net under
vb.net. Below I've included a rather simple piece of code which is producing a run time error on line 18. The error message produced is.
"An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in microsoft.visualbasic.dll
Additional information: System error."
Imports System
Imports System.Data
Imports System.Data.SqlClient
Module Module1
Sub Main()
Dim Conn = New SqlConnection("Data Source=P2000;Initial Catalog=Northwind;Integrated Security=SSPI")
Dim rdr As SqlDataReader
Conn.open()
Dim cmd = New SqlCommand("select * from cutomers", Conn)
rdr = cmd.ExecuteReader()
End Sub
End Module