dump and load database

Before you run dump database for a cross-platform dump and load, use the following procedures to move the database to a transactional quiescent status:

  1. Verify the database runs cleanly by executing dbcc checkdb and dbcc checkalloc.

  2. To prevent concurrent updates from open transactions by other processes during dump database, use sp_dboption to place the database in a single-user mode.

  3. Flush statistics to systabstats using sp_flushstats.

  4. Wait for 10 to 30 seconds, depending on the database size and activity.

  5. Run checkpoint against the database to flush updated pages.

  6. Run dump database:

    1. Place the database in a single user mode by sp_dboption.

    2. Run sp_flashstats in the database.

    3. Run checkpoint in the database.

    4. Run dump database.