DataReader throwing an error message when trying to execute an command in my vb.net page And the code throwing error is:
Dim connectionString As String
Dim connection As SqlConnection
Dim sql As String
connectionString = \\\connection string\\\
connection = New SqlConnection(connectionString)
sql = "select * from jb_jobs where city='Los Angeles' "
connection.Open()
Dim reader As SqlDataReader = sql.ExecuteReader()
And the error is: 'ExecuteReader' is not a member of 'string' How to resolve this???