Subject: Urgent getting Error while using SqlDataReader
Posted By: hums Post Date: 9/29/2004 1:01:09 AM
When i start my web application and try to read data from my SQL Server using SqlDataReader I getting error :
Invalid attempt to read when no data is present.

Plz help me its urgent.

Reply By: bmains Reply Date: 9/29/2004 9:59:37 AM
Could you post code?
Reply By: bmains Reply Date: 9/29/2004 10:03:12 AM
Oh wait, are you doing While objDataReader.Read() to access the data?  You have to do it like this:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatasqlclientsqldatareaderclassreadtopic.asp

Go to topic 19960

Return to index page 759
Return to index page 758
Return to index page 757
Return to index page 756
Return to index page 755
Return to index page 754
Return to index page 753
Return to index page 752
Return to index page 751
Return to index page 750