Can some one help me to know the code to get records(rows) count in the datareader
Thanks for your help
DataReader itself doesn't provide this information. The way to retrieve the row count would be scanning the returned data stream by using a counter:
or executing SELECT COUNT(*) query to get the row count, before executing the reader.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?