Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SHRINK

Status
Not open for further replies.

baran121

Programmer
Sep 8, 2005
337
TR
hi i need to shrink my db.

i wanna be sure about it.

what is the defference between
DBCC SHRINKDATABASE (mydb)
and
DBCC SHRINKDATABASE (mydb,15)

is there any problem if i use DBCC SHRINKDATABASE (mydb)

thank you..
 
Baran121, 15 in your case means you want to shrink the file and leave 15% of the space free.



MCP SQL Server 2000, MCTS SQL Server 2005, MCTS SQL Server 2008 (DBD, DBA)
 
thank you TheBugSlayer,

but i know that 15 in my case means i want to shrink the file and leave 15% of the space free.
i mean if i use DBCC SHRINKDATABASE (mydb)
for all free space. is there any problem, maybe database will slow down.
and i wanna shrink my database every sundey night.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top