SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Backup and Truncate Transaction Logs

By Jorge Novo-@ETLDEVDBA,

Our performance and test environment is set on full recovery mode, after every test the database logs where growing outoff control. But not any more.The script will set the database to single user, backup the transaction log ( " optional step") and finaly shrik the log file to 1 mb.

Total article views: 2666 | Views in the last 30 days: 2