Solved

DBCC SHRINKDATABASE

Posted on 2010-09-14
5
197 Views
Last Modified: 2013-12-01
How DBCC SHRINKDATABASE command works in sqlserver 2000?

Thanks,
Arun
0
Comment
Question by:arunbhatt
  • 2
5 Comments
 
LVL 21

Accepted Solution

by:
Jason Yousef, MS earned 500 total points
ID: 33673941
Hi,
you can use
DBCC SHRINKDATABASE ( database_name [ ,target_percent ])
or use other optiong such as truncation

Read here about it http://msdn.microsoft.com/en-us/library/aa258287%28SQL.80%29.aspx

also there's

DBCC SHRINKFILE ({fileid | 'filename'}, [compress_size [, {NOTRUNCATE | TRUNCATEONLY | EMPTYFILE}]])

which the specified shrinks data files, I use it when i've small size DB.

Hope that helps

0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 33678360
>>How DBCC SHRINKDATABASE command works in sqlserver 2000? <<
It shrinks the database.
0
 
LVL 21

Expert Comment

by:Jason Yousef, MS
ID: 33887023
Any luck? do you need additional info?
0
 
LVL 22

Expert Comment

by:Steve Wales
ID: 39687903
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

895 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

12 Experts available now in Live!

Get 1:1 Help Now