September 24, 2012 at 8:52 am
hello nerds,
I have a request.. Can anyone help me in getting the
large queries being run on sql server by users that return an excessive number of rows.
Your help is appreciated .
T
September 24, 2012 at 9:05 am
Nerds????
Very hard to get the queries that return lots of rows. Getting ones that do huge numbers of reads is easier. Try
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 24, 2012 at 11:06 am
If very large data sets are needed, there's seldom much tuning that can be done through T-SQL or indexes. Usually, if you have to move extremely large data sets, you need to tune the hardware, or, in other words, throw money at the problem.
But that's just a general view on your open-ended question. Do you have a specific issue you're trying to solve?
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
September 24, 2012 at 9:43 pm
select row_count , C.Text From sys.dm_exec_sessions ES ,sys.dm_exec_connections EC
Cross apply sys.dm_exec_sql_text (Ec.most_recent_sql_handle) C
where Es.session_id= EC.session_id
Not sure why you try to find out number of result sets. But above query can guide you.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply