Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Backup Best Practices

Author  Topic 

powellbound
Starting Member

23 Posts

Posted - 2008-08-21 : 12:44:33
We are looking to schedule our backups nightly at 2 am instead of doing them manually (I know, there was no IT staff at all 2 weeks ago).

Anyway, I was curious what you all would recommend as a best practice to do this. I was planning on just setting up a job but thought I would ask the experts first.

Thanks!

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-21 : 12:56:03
We run full backups nightly and transaction log backups every 15 minutes. I've written a comprehensive backup script that can be used for both SQL Server 2000 and SQL Server 2005.

Here you go:
http://weblogs.sqlteam.com/tarad/archive/2008/08/19/Backup-SQL-Server-Databases.aspx

And here is what my production environment looks like as far as SQL jobs go:
http://weblogs.sqlteam.com/tarad/archive/2008/06/30/SQL-Server-jobs-on-production-instances.aspx

Here are all of my database maintenance routines:
http://weblogs.sqlteam.com/tarad/archive/2004/07/02/1705.aspx


Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

powellbound
Starting Member

23 Posts

Posted - 2008-08-21 : 15:30:45
When I the sql to create the sp, I got these messages:

Cannot add rows to sys.sql_dependencies for the stored procedure because it depends on the missing table 'master.dbo.xp_backup_database'. The stored procedure will still be created; however, it cannot be successfully executed until the table exists.
Cannot add rows to sys.sql_dependencies for the stored procedure because it depends on the missing table 'master.dbo.xp_backup_database'. The stored procedure will still be created; however, it cannot be successfully executed until the table exists.
Cannot add rows to sys.sql_dependencies for the stored procedure because it depends on the missing table 'master.dbo.xp_backup_log'. The stored procedure will still be created; however, it cannot be successfully executed until the table exists.

Obviously, I do not have that table. Do you have the DDL to create that table?

Thanks
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-21 : 15:59:46
Did you notice in the blog where it says this:
quote:

If you don't have SQL LiteSpeed installed, ignore the warnings in the output when creating this stored procedure. They are warnings and not errors. The stored procedure works with or without SQL LiteSpeed installed.



Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

powellbound
Starting Member

23 Posts

Posted - 2008-08-21 : 16:09:57
Hmmm, guess I missed that... ;)

Thanks
Go to Top of Page
   

- Advertisement -