Adatbázis mentés/visszaállítás

Forrás

http://metrix.fcny.org/wiki/homepage.action

Documentation for Metrix Developers and Consultants

Log In   http://metrix.fcny.org/wiki/display/dev/Using+OSQL+to+backup+and+restore+a+database?decorator=printable

Using OSQL to backup and restore a database

http://metrix.fcny.org/wiki/pages/listpages.action?key=dev Browse Space    

 

 

Added by Anthony Hernandez, last edited by Anthony Hernandez on Jan 08, 2008  (view change)   Labels: osql,restore,backup

 

Logging in and Starting up OSQL| (warning) | A note about who can create backups

You can create a backup of the database by logging in as the system administrator or a Metrix administrator. Before you can log in as a Metrix administrator, you'll have to log in as a system administrator and create a user account and assign it to the MetrixAdmin user role. See Setting Up Users for more information. |# Enter the "DOS command line" mode of Windows by choosing Run from the Start menu and typing "command" into the dialog box.

  1. At the DOS prompt, start OSQL and connect to your MSDE/SQL Server by typing:OSQL -U sa -P admin -S (local)\METRIX
  2. This starts up OSQL and you can now begin using commands to work with your database(s).

    Backing-up a Database Using OSQL

    To create a backup file of an existing database, use the following command:BACKUP DATABASE dbname TO DISK = 'c:\path\to\backupfile.dat'
    GoWhere: