Click here to Skip to main content
15,889,767 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
do any one know how to take the DB backup from online database
for MSSQL 2008 R
I tried but no luck
I had SQL Server Managment Studio
to update and edit manualy @ DB


Some one told me i need to dump database first by using sql query then make backup but i donot know the procedure how i do that.please help me out in detail if any one knows asap thanks


database backup is created on the server easily.but i need to make is on local disk.so i am unable to create backup on local disk.i try 2 to 3 quries but no query work.so plz help me out.
if first i need to dump database then how can i dump any procedure plz help me out
Posted
Updated 19-Sep-11 20:01pm
v4
Comments
Corporal Agarn 16-Sep-11 9:21am    
What permissions do you have? Note that at the top of the dialog window there is an icon for Script. Click this and let us know the result. Mehdi Gholam's solution should work though.
genious Developer 17-Sep-11 4:45am    
i have administrator rights
genious Developer 17-Sep-11 11:10am    
database is existing on hosting server.
genious Developer 20-Sep-11 1:16am    
dear database backup is created on the server easily.but i need to make is on local disk.so i am unable to create backup on local disk.i try 2 to 3 quries but no query work.so plz help me out.

1 solution

Use the following tsql to backup your database :
SQL
Backup database [database name] to disk=’\\servername\path.bak’
 
Share this answer
 
Comments
Mehdi Gholam 17-Sep-11 11:33am    
Check with your service provider what path you have access to?
Mehdi Gholam 20-Sep-11 1:21am    
What is the error message you are getting?
Mehdi Gholam 20-Sep-11 11:45am    
c:\backup\ does not exist, use a path that exists.
genious Developer 20-Sep-11 12:09pm    
what does it mean dear.
the server path is
F:\MS SQL\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\Backup-hsnaamir_mobiles.bak

but i need to make backup on local disk.
so i put this
C:\Backup\Backup-hsnaamir_mobiles.bak

if it is wrong then what path i should provide for backup on my local disk
Mehdi Gholam 20-Sep-11 12:49pm    
you cannot backup to local path directly, you must backup to the server then transfer the file to your local computer

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