SQL Server Central is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

yet another backup script using litespeed or native backup

By Wesley Brown, 2004/09/07

Total article views: 208 | Views in the last 30 days: 14

Updated! Now supports both SQL Litespeed and native backup commands in one script! Several new bug fixes please see the header of the script. Error messages to add are now at the bottom of the script! This stored procedure will backup a single database or all databases it will also perform ether a full, diff, or tlog backup. This uses SQL LiteSpeed or native backup provided by SQL Server this stored procedure is designed to take x parameters: @dbname : required, this is the database you wish to backup null or comma seperated list @bktype : required, this is the type of backup 0=full,1=diff,2=tlog @bkpath : required, this is the path can be a drive letter i.e. c:\bak or a unc \\myserver\bak @bkpathhold : required, this is the directory that backups are spooled to first can be the same as the @bkpath @wtcnt int : Default 60, this sets the maximum number of wait loops @sls tinyint : Default 1, this sets the default action to backup using SLS if it is available usage usp_backup2 ,2,'',''

By Wesley Brown, 2004/09/07

Total article views: 208 | Views in the last 30 days: 14
Your response
 
 
Related tags
 
Already registered?  

Free registration required

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Register

E-mail address:
Password:
Password (confirm):

  

Subscriptions

We ask you to register on the site and subscribe to our newsletters. Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

We ask that you give the newsletter a try for a week. Over 200,000 SQL Server Professionals a day find it entertaining and useful. If not, you are welcome to unsubscribe at anytime.

Steve Jones
Editor, SQLServerCentral.com