Forum Themes:
Welcome !

 How to back-up a SQL Database

Author Message
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>
 
#1
    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'
    1. 'DISK' : back up the database to your disk. You can also use 'TAPE' to back up to a tape drive.
    2. 'TESTBAK' : the name of the backup, and it' s the name you will use in the backup statment later.
    3. '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

     
    #2
      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.
       
      #3
        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9