[Guide] Backup DB (Query Analyzer)

Gasolincho

Well-Known Member
Joined
May 15, 2008
Messages
683
Reaction score
693
Dear Darks,

Sample script to backup your database with Query Analyzer.

#1. Open
*StartMenu->Programs->Microsoft SQL Server->Query Analyzer

#2. Copy script from DarksTeam.net
Code:
USE master;
GO
BACKUP DATABASE MuOnline
TO DISK = 'D:\MuServer\backups\MuOnline-backup.Bak'
   WITH FORMAT,
      MEDIANAME = 'DarksTeam',
      NAME = 'Full Backup of MuOnline MSSQL script www.darksteam.net';
GO

#3. Select database MuOnline
*Execute the script

After all this your backup will be in D:\MuServer\backups\, but of-course you must have that folder.


Thanks, Gaso.
 
Мерси много , ето че имало и по лесен начин. 10/10 :)
 
браво, добра работа, ама предпочитам дясно копче и backup database :)
 
Много добра работа но и аз предпочитам по "стандартния" начин .
 
Благодаря ти Гасо ако не беше ти незнам как щях да направя бекъп-а мн добър скрипт.
И благодаря за помоща още веднъж Гасо.
:)
 
Server: Msg 3201, Level 16, State 1, Line 1
Cannot open backup device 'D:\MuServer\backups\MuOnline-backup.Bak'. Device error or device off-line. See the SQL Server error log for more details.
Server: Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.