Digitalcandy
IS-IT--Management
Every Friday I am having to manually backup and shrink the transaction log. How can I do this automatically on Sunday night at 12AM?
When I do it manually on Fridays I use SQL querry analyzer and use the following commands;
1st command I run in Querry analyzer;
BACKUP LOG MyDatabase WITH TRUNCATE_ONLY
2nd command after the first is ran;
DBCC SHRINKFILE (MyDatabase_Log)
When I do it manually on Fridays I use SQL querry analyzer and use the following commands;
1st command I run in Querry analyzer;
BACKUP LOG MyDatabase WITH TRUNCATE_ONLY
2nd command after the first is ran;
DBCC SHRINKFILE (MyDatabase_Log)