Near Shore Consulting Ltd.
View Yves Rochon's profile on LinkedIn
Our Blog
Our Blog
T-SQL statement for backing up SQL Server database to disk
Location: BlogsNear Shore Blog    
Posted by: admin 1/30/2007 2:28 PM

It is sometimes useful to issue a database backup statement from a stored procedure, or from within an SQL Task in a DTS package.

To backup a database to disk, use the following statement:

BACKUP DATABASE mydb TO DISK = 'E:\Backups\MyDB\\mydb_yyyymmdd.bak'

Permalink |  Trackback
Blog
Near Shore Consulting  |  Terms Of Use  |  Privacy Statement