Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
hi,i want to take my database backup. I have remote access to my SQL server. When i try to access database through enterprise manager it gets hanged/ no response. But i can easily connect and access database through query analyzer.IS there any way to take database backup by using query analyzer or T-SQL.regards,irfan
Merkin
Funky Drop Bear Fearing SQL Dude!
4970 Posts
Posted - 2004-06-09 : 00:33:31
YesLook up "BACKUP DATABASE" in Books Online for Syntax.Damian
pjn
Starting Member
27 Posts
Posted - 2004-06-09 : 06:42:49
As Merkin says, check BOL for exact syntax, but as a quick guide, I use the following code for adhoc backups:
BACKUP DATABASE MyDatabase TO DISK = 'C:\MyBackup.bak' WITH INIT, NAME = 'MyDatabaseBackup', NOFORMAT, NOSKIP