I have a few clarifications on Sql Server Administration. Can you pls help me..
1. How to shrink a transaction log file? (The transaction log is around 1.8GB and the database is only 400MB. Related dbcc commands did not shrink the transaction log file). I am not using checkpoint to truncate log file. Instead, I am using backup transaction log, which automatically truncates the log file.
2. I have the following backup strategy:
# Complete database backup daily - 9pm
# Differential database backups - every 2 hrs from 8am to 8pm
# Transaction log backups -
(Whenever log growth rises over 20%)
I have created a job for the transaction log backup which has the following code:
backup log <dbname> to <backup device>
I find that the transaction log backup size keeps growing and is almost 3 times more than the database size. Which is the best way to take the backup of the transaction log? Is the above syntax correct? Can I use "WITH INIT" in the backup log command?
Or can some one suggest a good alternative way.
Any help will be highly appreciated.
Sri
1. How to shrink a transaction log file? (The transaction log is around 1.8GB and the database is only 400MB. Related dbcc commands did not shrink the transaction log file). I am not using checkpoint to truncate log file. Instead, I am using backup transaction log, which automatically truncates the log file.
2. I have the following backup strategy:
# Complete database backup daily - 9pm
# Differential database backups - every 2 hrs from 8am to 8pm
# Transaction log backups -
(Whenever log growth rises over 20%)
I have created a job for the transaction log backup which has the following code:
backup log <dbname> to <backup device>
I find that the transaction log backup size keeps growing and is almost 3 times more than the database size. Which is the best way to take the backup of the transaction log? Is the above syntax correct? Can I use "WITH INIT" in the backup log command?
Or can some one suggest a good alternative way.
Any help will be highly appreciated.
Sri