Announcement

Collapse
No announcement yet.

SQL Datenbank Backup Script ist Server "offline" oder "online" ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SQL Datenbank Backup Script ist Server "offline" oder "online" ?

    Hi,

    Wie verhält sich "offline" oder "online" die SQL Datenbank, wenn man ein Backup Script ausführt?

    derzeit mache ich bsp:
    jeden Sonntag ein vollbackup:
    Code:
    BACKUP DATABASE [MYDB-NAME] TO  DISK = @MYDB-NAME  WITH NOFORMAT,  NAME = N'MYDB-NAME-Full Database Backup'
    und täglich sichere ich die transaktions-Logs:
    Code:
    BACKUP LOG MYDB-NAME TO DISK='D:\MSSQLSERVER_IWSE\MSSQL10.MSSQLSERVER_IWSE\MSSQL\Backup\01_LOG_MON\MYDB-NAME_MAIN_MON_LOG.BAK' WITH INIT
    Ist der SQL-Server für einen Moment "offline" wenn eines der beiden Scripte ausgeführt wird?
    Oder bleibt der SQL-Server hier immer "online" und er arbeitet weiter?


    Wenn er "online" bleibt, was wäre wenn in dem Moment,
    wo ein Backup angestoßen wird, noch eine Aktion nicht abgeschlossen ist,
    weil z.B. erst 50 Prozent in die Datenbank geschrieben wurde?

    Grüße
    Rayman

  • #2
    Hi,

    In SQL Server 2005 and later versions, backup can occur while the database is online and being used.
    Offline Data Cannot Be Backed Up
    During a backup, most operations are possible; for example, INSERT, UPDATE, or DELETE statements are allowed during a backup operation. However, if you try to start a backup operation while a database file is being created or deleted, the backup operation waits until the create or delete operation is finished or the backup times out.
    Habe ich gerade hier gelese: http://msdn.microsoft.com/en-us/library/ms175477.aspx

    Comment

    Working...
    X