Database operations through SQL: Database Restore ...

Posted by zc0000 on ASP.net Weblogs See other posts from ASP.net Weblogs or by zc0000
Published on Mon, 29 Mar 2010 13:50:00 GMT Indexed on 2010/03/29 14:23 UTC
Read the original article Hit count: 1068

If using sql to perform a database restoring , care the sql-codes very well. Any trivial mistake may prevent a successful execution. Cases are listed here based on simple experiments.
  • with operation: MOVE 'logical_file_name_in_backup' TO 'operating_system_file_name'

    If logical file name not correctly set , following error is obtained:

    Logical file 'FILE_NAME' is not part of database 'DATABASE_NAME'. Use RESTORE FILELISTONLY to list the logical file names.

    RESTORE DATABASE is terminating abnormally.

To be continue...

© ASP.net Weblogs or respective owner

Related posts about database restore

Related posts about SQL Server