Detaching and Attaching database

  • The feature to detach and attach the database is gray out (not available).  How can you perform this task if these features are not available to use in SQL Server enterprise Manager

  • This was removed by the editor as SPAM

  • In Query Analyzer you could run:

    sp_detach_db and sp_attach_db. Refer to the BOL for more information.

    Also, do you have the appropriate privileges to detach/attach a database?

    -SQLBill

  • Forgot one thing....is this a replicated database? If so, BOL says it must be unpublished for sp_detach_db to work.

    As for privileges, you must be a member of sysadmin on the database.

    -SQLBill

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply