sql-tuning

How to find out why the status of a spid is suspended? What resources the spid is waiting for?

笑着哭i 提交于 2019-11-29 21:03:32
I run EXEC sp_who2 78 and I get the following results : How can I find why its status is suspended? This process is a heavy INSERT based on an expensive query. A big SELECT that gets data from several tables and write some 3-4 millions rows to a different table. There are no locks/ blocks. The waittype it is linked to is CXPACKET . which I can understand because there are 9 78s as you can see on the picture below. What concerns me and what I really would like to know is why the number 1 of the SPID 78 is suspended. I understand that when the status of a SPID is suspended it means the process

SQL Server audit logout creates huge number of reads

爱⌒轻易说出口 提交于 2019-11-28 10:44:12
I'm using SQL Server Profiler to figure out what process are consuming SQL process and I found that the event class Audit Logout is causing a huge number of reads and consume cpu process. Is it normal? Or do I have something wrong in the SQL Server configuration? The audit logout event aggregates a lot of its values like reads/writes, connection times, etc. from the time the connection was opened. See http://msdn.microsoft.com/en-us/library/ms175827.aspx - the definition for your specific question added here: Reads Number of logical read I/Os issued by the user during the connection. So

SQL Server audit logout creates huge number of reads

試著忘記壹切 提交于 2019-11-27 03:46:02
问题 I'm using SQL Server Profiler to figure out what process are consuming SQL process and I found that the event class Audit Logout is causing a huge number of reads and consume cpu process. Is it normal? Or do I have something wrong in the SQL Server configuration? 回答1: The audit logout event aggregates a lot of its values like reads/writes, connection times, etc. from the time the connection was opened. See http://msdn.microsoft.com/en-us/library/ms175827.aspx - the definition for your