How do I attach a database for Web Reporter?
search cancel

How do I attach a database for Web Reporter?

book

Article ID: 52956

calendar_today

Updated On: 09-16-2024

Products

STORAGE RESOURCE MANAGEMENT SUITE

Issue/Introduction

You can attach a copied or detached SQL Server database. When you attach a SQL Server database that contains full-text catalog files onto a SQL Server server instance, the catalog files are attached from their previous location along with the other database files.

After detaching a SQL Server database, you can reattach it to the same or another instance of SQL Server. Attaching a database places it in exactly the same state that it was in when it was detached.

Note: We recommend that you do not attach or restore databases from unknown or untrusted sources.

Environment

Release: BRMAPS20100-11.7-Storage Resource Manager-Application Server
Component:

Resolution

To attach a database:

  1. Connect to an instance of the Microsoft SQL Server Database Engine in SQL Server Management Studio Object Explorer.

  2. Expand the instance.

  3. Right-click Databases and click Attach.
    The Attach Databases dialog opens.

  4. Click Add.
    The specified database is attached.

  5. Select the disk drive where the database resides in the Locate Database Files dialog.

  6. Expand the directory tree to find and select the .mdf file of the database.

    • Example:
      D:\SQLDataFiles\CASRMCentralDB.mdf
      Important! Trying to select a database that is already attached generates an error.

  7. Enter the name in the Attach as column of the Attach Databases dialog.
    A different name is specified for the database.

  8. Select a different entry in the Owner column.
    The owner of the database is changed.

  9. Click OK.
    The database is now reattached.
    Note: A newly attached database is not displayed in the Databases node of Object Explorer until the view is refreshed. You can refresh the view at any time.