Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Inner Detail After Running a Query

Author  Topic 

harissarwar
Starting Member

15 Posts

Posted - 2008-06-30 : 04:43:12
While using SqlCommand we have three options for exicuting a query.
1. ExecuteScalar (For Aggregate Function)
2. ExecuteNonQuery (For Insert, Del, etc operations)
3. ExecuteScalar (For retriving results of select query)

I want to know when we run a certain query where the results are
stored temporarily.

How DataReader gets data from the Sql Server after running
ExecuteScalar Command?

Lets say i have run a StoredProcedure through SqlCommand named as "SelectList" with ExecuteScalar.
If i use two queries in "SelectList" Will the result of both the queries will be accessible through DataReader or the result of last query will be available?
If i want to access multiple table results in application in a single
procedure how can i do that?
   

- Advertisement -