.NextResult() method does gives an error that states that no data is present
问题 Can you check my coding and let me know what I'm doing wrong? I'm trying to use the .NextResult() method of a DataReader but I get an error that no data is present. The 1st query returns a value but the 2nd query is the problem. Dim strSqlStatement As String = "Select Count(*) As TotalRows " & _ "From Parents " & _ "Where (FatherName = @SearchValue " & _ " Or MotherName = @SearchValue);" strSqlStatement = strSqlStatement & "Select FatherName, MotherName " & _ "From Parents " & _ "Where