Hi,
I am getting a type mismatch error when I try to populate a SQLDataReader
object. Here is the exact text of the error message:

Value of type 'System.Data.SqlClient.SqlDataReader' cannot be converted to
'1-dimensional array of System.Data.SqlClient.SqlDataReader'.

I don't know what is wrong. As far as I can tell, ExecuteReader returns
a SQLDataReader so the types should match.

Here is my code:

Dim strSQL As String
strSQL = "Select * From Persons where LoginName = '" & mstrLoginName &
_
"' AND Password = '" & mstrPassword & "'"

Dim objConn As New SqlConnection()
objConn.ConnectionString = "user id=tracker;password=XXXXXXX;initial catalog=Tracker;data
source=(local);Connect Timeout=30"

Dim objCommand As New SqlCommand(strSQL, objConn)
objConn.Open()

Dim objDataReader As SqlDataReader()

'ERROR ON THE FOLLOWING LINE
objDataReader = objCommand.ExecuteReader()


In case it makes a difference, I am using VS.NET RC0.

Thx,
Angela