motox795
-
Total Posts
:
150
-
Reward points
:
0
- Joined: Feb 04 '03
- Location: New Jersey - USA
-
Status: offline
|
How to back-up a SQL Database
Sun. May 25, '03 9:39 PM
( permalink)
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 Thu. Jul 3, '08 11:41 PM>
|
|
|
|
Samuel
-
Total Posts
:
11786
-
Reward points
:
168350
- Joined: May 23 '01
-
Status: offline
|
RE: How to back-up a SQL Database
Mon. May 26, '03 12:50 AM
( permalink)
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 Mon. Aug 28, '06 12:50 PM>
ASPPlayground.NET ~ see our Version 4 plans here
|
|
|
|
motox795
-
Total Posts
:
150
-
Reward points
:
0
- Joined: Feb 04 '03
- Location: New Jersey - USA
-
Status: offline
|
RE: How to back-up a SQL Database
Mon. May 26, '03 12:19 PM
( permalink)
Thanks Samuel! You ALWAYS have the answer back quickly.
|
|
|
|