Solved

DBCC SHRINKDATABASE

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

Thanks,
Arun
0
Comment
Question by:arunbhatt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Microsoft Certification Exam 74-409

VeeamĀ® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

739 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