Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

option (maxdop 1) Expand / Collapse
Author
Message
Posted Tuesday, August 10, 2010 3:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, March 22, 2012 4:51 AM
Points: 7, Visits: 11
I've noticed some blocking sessions caused by the following SQL but it's nowhere to be found in my SP's and Exe's. Anyone know what this is? Is it stats / indexes being rebuilt?

insert [dbo].[CLIENT] select * from [dbo].[CLIENT] option (maxdop 1)
Post #966474
Posted Tuesday, August 10, 2010 5:56 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Friday, August 1, 2014 6:18 AM
Points: 1,618, Visits: 20,980
MAXDOP is an option with which you can control the Maximum Degree of Parallelism. Details on the query hint is here

Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Post #966587
Posted Tuesday, August 10, 2010 6:46 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 1:03 PM
Points: 15,729, Visits: 28,132
You've got a query that is selecting everything from the client table to insert into the client table... I'd figure out who was doing that right away if it were my system.

----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #966629
Posted Tuesday, August 10, 2010 6:52 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, March 22, 2012 4:51 AM
Points: 7, Visits: 11
It's seems to be a network service that is running it from the server itself. I've installed ideara diagnotic manager recently but other than that no SP's, any batch SQL that is going it.

Would be the index being rebuilt? occurred around the index rebuild time last night.
Post #966637
Posted Tuesday, August 10, 2010 7:07 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 1:03 PM
Points: 15,729, Visits: 28,132
email-935809 (8/10/2010)
It's seems to be a network service that is running it from the server itself. I've installed ideara diagnotic manager recently but other than that no SP's, any batch SQL that is going it.

Would be the index being rebuilt? occurred around the index rebuild time last night.


No, I'm pretty sure that wouldn't be part of a normal index rebuild, I don't think. I sure don't recall ever seeing that before.


----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #966657
Posted Monday, April 22, 2013 1:52 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 6:15 AM
Points: 184, Visits: 654
email-935809 (8/10/2010)
I've noticed some blocking sessions caused by the following SQL but it's nowhere to be found in my SP's and Exe's. Anyone know what this is? Is it stats / indexes being rebuilt?

insert [dbo].[CLIENT] select * from [dbo].[CLIENT] option (maxdop 1)


I know this is a very old post, I just had the same query execute on my server as wondering what it is? Is this Index rebuilding or mirroring? There aren't any duplicate records in the table and it is being called by the 'sa' user.
Post #1444885
Posted Monday, April 22, 2013 2:37 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 6:15 AM
Points: 184, Visits: 654
Looks like this happened at same time as the index rebuild under the same spid.
Has anyone else seen this before, that can perhaps provide a little more insight?

Thanks
Post #1444898
Posted Monday, June 3, 2013 7:20 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, August 21, 2013 9:42 AM
Points: 5, Visits: 164
This is normal for index rebuilds - or at least it is on our systems. I always found it odd that it doesn't show the actual SQL DDL query that was executed.

It will of course block unless you use the ONLINE = ON option, and that's only available in the Enterprise edition. If you're not worried about the performance impact, you can probably speed it up by changing the query to use MAXDOP = 0. That will of course be at the expense of higher CPU and IO usage.
Post #1459263
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse