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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Planning to Shrink Transaction Log ..

Status
Not open for further replies.
Nov 4, 2002
107
SG
Hello ..
Im planning to Shrink my transaction Log.
The server to use is SQL 7.0. and I already
have full backup of the file/Database both Flat file
and using the backup utility of SQL 7.0.
Im not sure what to use in shinking the File/Transaction Log

1.

DBCC SHRINKDATABASE (DataDB, 10)
GO

2.
USE UserDB
GO
DBCC SHRINKFILE (DataFil1, 7)
GO

Please Advice


 
I would use the DBCC Shrinkfile. It works best when dealing with the transaction log.

Hope this helps.
 
Great!! Men Look I have the best answer now ...
I have the 2 Best/TopNotch Tipster in the Forum ..

Thank you very much ..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top