all groups > sql server (alternate) > july 2005 >
You're in the

sql server (alternate)

group:

Scheduling a script


Scheduling a script Myth of Sisyphus).
7/27/2005 3:38:49 PM
sql server (alternate):
I wish to run this script daily. Can this be scheduled?


backup log shipmateDB with truncate_only


G

Re: Scheduling a script Mike Epprecht (SQL MVP)
7/27/2005 10:23:10 PM
Hi

Look at SQL Server Agent in BOL. It can schedule jobs and run code.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

[quoted text, click to view]

Re: Scheduling a script Greg D. Moore (Strider)
7/27/2005 11:51:05 PM

[quoted text, click to view]

Can I add though that this script is probably not a good idea.

Either run the database in simple mode or perform actual log backups.


[quoted text, click to view]

Re: Scheduling a script Myth of Sisyphus).
7/28/2005 8:51:11 AM
Hi Greg,

I do have a log file backup scheduled along with my regular backup.
However, I do get sporatic log file full messages. I then have to run the
script through the query analyzer that appears to solve the problem untill
the next time.

regards

gilbert


[quoted text, click to view]

Re: Scheduling a script Greg D. Moore (Strider)
7/28/2005 2:20:37 PM

[quoted text, click to view]

But then you've completely invalidated your log backup chain.

I think you need to revisit your disaster recovery scenario since once
you've done the truncate, you can no longer recover anything past the last
transaction back up or full backup.

You're either better of doing transaction log backups more often to avoid
filling up your log, making your log larger, or finding out what's filling
them up.


[quoted text, click to view]

AddThis Social Bookmark Button