Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
Hi All,

Can you please guide me for SQL Server 2005 DataBase Backup command.

Thanks in Advance.

Regards,
Ganesh.S
Posted
Updated 25-May-11 2:22am
v2

backup database databasename to disk "C:/databasename.bak"
 
Share this answer
 
Comments
gani7787 25-May-11 8:28am    
Incorrect syntax.pls. give correct syntax
Mayur Gujrathiii 25-May-11 8:37am    
backup databse DatabaseName to disk='c:\temp\DatabaseName.bak'
gani7787 25-May-11 9:02am    
I have used below command for backup.

"backup database IMS_Algeria to disk = 'D:\IMS_Algeria.bak'"

SQL Server says,
Processed 4136 pages for database 'IMS_Algeria', file 'IMS_SG' on file 3.
Processed 1 pages for database 'IMS_Algeria', file 'IMS_SG_log' on file 3.

But, nothing will be created. pls. help.

Regards,
Ganesh.S
BACKUP DATABASE successfully processed 4137 pages in 1.235 seconds (27.441 MB/sec).
Mayur Gujrathiii 25-May-11 9:16am    
your back up created successfully
See here[^].
 
Share this answer
 
You can backup your database in two ways:

1.Use Management Studio Express (available separately or as part of Express advanced from this download page) which has the Backup option on the right click menu for each database under Tasks.

2.Use T-SQL to manually write your backup script. You can learn about the T-SQL backup command in this BOL topic.

If you want to schedule your backups, you would write a T-SQL script and then use Windows Task Schedule to call SQLCmd to run the script on what every schedule.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900