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 |
aatishpatel
Starting Member
8 Posts |
Posted - 2014-01-30 : 11:42:46
|
In SQL Server 2008 R2 can someone please tell me how to shrink log file and also the data file.. I have Log shipping going on so really don't want to break the log chain. I know shrinking is not good but i really need this right now to free up some space and this is a dev environemnt so shrinking doesn't matter. |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2014-01-30 : 12:37:47
|
DBCC SHRINKFILE, just don't truncate the log.Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
aatishpatel
Starting Member
8 Posts |
Posted - 2014-01-30 : 13:10:12
|
Can you please give me the exact script to shrink log file without breaking logshiping chain? |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|
|