Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 29th, 2003, 08:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default backing up all databases on sql

Hi there

I want to do a bulk back up nightly of all my databases running on SQL server - does anyone have a script to do it?

I'm using this:

EXECUTE master.dbo.xp_sqlmaint N'-PlanID 3460376E-CAEE-42EB-B2FD-1B8C70293FEA -WriteHistory -VrfyBackup -BkUpMedia DISK -BkUpDB "F:\SQL Server Data\MSSQL\BACKUP" -DelBkUps 4DAYS -CrBkSubDir -BkExt "BAK"'

but when I check the history, the error it gives is:

sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.

Any help greatly appreciated

Many thanks

Adam
 
Old October 29th, 2003, 09:40 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

Why don't you just set up a maintenance plan in EM and let SQL Server agent execute it for you on whatever schedule you choose?

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com
 
Old October 29th, 2003, 01:02 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

Thanks Jeff

That's alot easier!





Similar Threads
Thread Thread Starter Forum Replies Last Post
backing up through USB Shira VB Databases Basics 1 October 9th, 2008 06:57 AM
Problem Backing Up to Share rstelma SQL Server 2005 1 July 18th, 2008 04:20 PM
Link tables from two different SQL Databases Folorunso Agbeja SQL Server 2000 1 October 19th, 2006 08:23 AM
Backing up a database BigH140 Access 9 August 8th, 2006 09:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.