Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
d3ng
Yak Posting Veteran
83 Posts |
Posted - 2008-11-25 : 20:22:29
|
Hi experts!I would like to ask if this SQL script for database truncation / shirnk is correct? Any suggestion for an a most effective scripts?ALTER DATABASE {database name} SET RECOVERY SIMPLEGODBCC SHRINKDATABASE({database name},TRUNCATEONLY)GOALTER DATABASE {database name} SET RECOVERY FULLGO |
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2008-11-25 : 20:26:23
|
It is bad practice to shrink Database like this. |
 |
|
d3ng
Yak Posting Veteran
83 Posts |
Posted - 2008-11-25 : 20:45:06
|
How? what is your suggestion?www.itchytech.com |
 |
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2008-11-25 : 20:54:27
|
Read this:http://www.karaszi.com/SQLServer/info_dont_shrink.asp |
 |
|
|
|
|