Hello
I am using SQL Server 2000
Basically, every night I run a whole host of packages that update a database
1. During the course of this the transaction log can grow to around 25 Gb
Any tips for quickly clearing this as the routine progresses
2. I use the following code to clear the transaction log and backup the database:
Problem is, it doesn't always clear the transaction log
If I run this bit of code just after the first dbcc shrinkfile (MDW_3_Log, 100) it seems to work:
Is that normal as the backup takes an extra 25 minutes as a result
Any help with this would be appreciated
Thanks
damian.
I am using SQL Server 2000
Basically, every night I run a whole host of packages that update a database
1. During the course of this the transaction log can grow to around 25 Gb
Any tips for quickly clearing this as the routine progresses
2. I use the following code to clear the transaction log and backup the database:
Code:
BACKUP LOG [MDW] TO [MDW Trans Backup] WITH INIT , NOUNLOAD , NAME = N'MDW Trans backup', SKIP , STATS = 10, NOFORMAT
BACKUP DATABASE [MDW] TO [MDW Backup] WITH INIT , NOUNLOAD , NAME = N'MDW backup', SKIP , STATS = 10, NOFORMAT
dbcc shrinkfile (MDW_3_Log, 100)
dbcc shrinkfile (MDW_Data)
Problem is, it doesn't always clear the transaction log
If I run this bit of code just after the first dbcc shrinkfile (MDW_3_Log, 100) it seems to work:
Code:
BACKUP DATABASE [MDW] TO [MDW Backup] WITH INIT , NOUNLOAD , NAME = N'MDW backup', SKIP , STATS = 10, NOFORMAT
dbcc shrinkfile (MDW_3_Log, 100)
Is that normal as the backup takes an extra 25 minutes as a result
Any help with this would be appreciated
Thanks
damian.