motox795
-
Total Posts
:
150
-
Reward points
:
0
- Joined: 02/04/2003
- Location: New Jersey - USA
-
Status: offline
|
How to back-up a SQL Database
-
05/25/2003 09:39:09 PM
Pardon my newbie question as I' m new to SQL databases. I have used the Snitz forums in the past with the database on our server and I FTP that database to my local computer as a backup. I' m considering using this forums software but don' t understand how to backup a SQL database. Can it be done using FTP just like other files or do I need an " Enterprise Manager" of some sort to perform the operation? Sorry if this post sounds trivial but to a newbie I' m looking for needed information. Thanks for your time!
<message edited by Samuel on 07/03/2008 11:41:31 PM>
|
|
Samuel
-
Total Posts
:
8812
-
Reward points
:
15960
- Joined: 05/23/2001
-
Status: offline
|
RE: How to back-up a SQL Database
-
05/26/2003 12:50:01 AM
Backing up a SQL server database is different from backing up an Access db. And you don' t need SQL Enterprise Manager to do it (you can use our db installer to perform backup). Use the following T-SQL statements to perform backup: 1. Create a device: exec sp_addumpdevice 'DISK' , 'TESTBAK' , 'F:\SQLBak\asppgd.bak' - 'DISK' : back up the database to your disk. You can also use 'TAPE' to back up to a tape drive.
- 'TESTBAK' : the name of the backup, and it' s the name you will use in the backup statment later.
- 'F:\SQLBak\asppgd.bak' : The physical path to the disk volume you are backing up to.
2. Backup BACKUP DATABASE [asppgdDatabase] TO TESTBAK WITH DESCRIPTION = 'My First BaK' , STATS Backup operation should complete in less than 1 min, depending on the size of your database. These are the basic T-SQL statements for backing up a SQL server database. For more information, please refer to SQL Server Books Online. You can also find useful info here.
<message edited by Samuel on 08/28/2006 12:50:12 PM>
Samuel Chou Forum Administrator
|
|
motox795
-
Total Posts
:
150
-
Reward points
:
0
- Joined: 02/04/2003
- Location: New Jersey - USA
-
Status: offline
|
RE: How to back-up a SQL Database
-
05/26/2003 12:19:04 PM
Thanks Samuel! You ALWAYS have the answer back quickly.
|
|