Re: How to backup/restore entire database in easiest way?
From: Andrew J. Kelly (sqlmvpnooospam_at_shadhawk.com)
Date: 01/15/05
- Next message: Andrew J. Kelly: "Re: How to evaluate in Sql a string of expression"
- Previous message: Zeng: "How to evaluate in Sql a string of expression"
- In reply to: Do Quyet Tien: "How to backup/restore entire database in easiest way?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 Jan 2005 22:45:45 -0500
The backup command (or most any TSQL commands for that matter) are always
executed on the server regardless of where you initiated the command. If
you want the backup file to be placed on a machine other than the server you
can use a UNC path (\\YourMachine\SharedFolder\Filename) to place it there.
But the backup command is always executed under the context of the account
that SQL Server itself runs under. By default that is the Local System
account and it has no rights to any remote share so you would have to run
SQL Server under a Domain account with rights to that share to do that.
-- Andrew J. Kelly SQL MVP "Do Quyet Tien" <tienonsoftware@yahoo.com> wrote in message news:eITEapq%23EHA.2804@TK2MSFTNGP15.phx.gbl... > Hi, > > I'm found this sample for BACKUP DATABASE statement in SQL Server 2000 > Book > Online, but is seemed that only save file to server. How can I save backup > file to local computer? or there is other way as easy as this statement > for > backup/restore database? > > -- Create a logical backup device for the full MyNwind backup. > USE master > EXEC sp_addumpdevice 'disk', 'MyNwind_1', > DISK ='c:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\MyNwind_1.dat' > > -- Back up the full MyNwind database. > BACKUP DATABASE MyNwind TO MyNwind_1 > > Thanks, > Tien, > >
- Next message: Andrew J. Kelly: "Re: How to evaluate in Sql a string of expression"
- Previous message: Zeng: "How to evaluate in Sql a string of expression"
- In reply to: Do Quyet Tien: "How to backup/restore entire database in easiest way?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|