Solved

DBCC SHRINKDATABASE

Posted on 2010-09-14
5
196 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:
huslayer 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:huslayer
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
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.

744 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

16 Experts available now in Live!

Get 1:1 Help Now