Solved

What kind of lock does SQL Server 2008 R2 acquires when doing DBCC SHRINKDATABASE?

Posted on 2012-03-30
2
434 Views
Last Modified: 2012-04-14
What kind of lock does SQL Server 2008 R2 acquires when doing DBCC SHRINKDATABASE?  Thanks.
0
Comment
Question by:thomaszhwang
2 Comments
 
LVL 8

Accepted Solution

by:
dmarinenko earned 500 total points
ID: 37789329
Table Locking, the same as if Tablock was used.  By the way, shrinking a 2008 database is normally not recommended,
http://msdn.microsoft.com/en-us/library/ms188796.aspx

One reason it isn't recommended
http://www.mssqltips.com/sqlservertip/2055/issues-with-running-dbcc-shrinkfile-on-your-sql-server-data-files/
0
 

Author Closing Comment

by:thomaszhwang
ID: 37847505
Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now