尝试在我的 vb.net 页面中执行命令时,DataReader 抛出错误消息并且代码抛出错误是:
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()
错误是:'ExecuteReader'不是'string'的成员如何解决这个问题???