Attaching Database

  • Hi,

    Due to disk space issues I tries to move a database this morning using Microsoft Management Studio. I then detached the database and copied the mdf to the new drive. When I tried to attach the database in Microsoft Management Studio I received the following error:

    "Proposed new database owner is already a user or aliased in the database - error 15510"

    Could you please help me out in with this issue

    Thanks

  • Change the owner to be sa in the attach DB dialog

  • How can i change that could you please guide me

  • can you see the attach db dialog?

    once you add the mdf, there is a combobox for owner listing server user, drop it down and select sa.

  • In the attach database dailog box i can see only ADD button .When i click tat button and directed to .mdf file and after that i clicked OK .....then i m getting this error.

  • Reading books on line would be a help. See the bold bit below.

    In SQL Server Management Studio Object Explorer, connect to an instance of the Microsoft SQL Server Database Engine and then expand that instance.

    Right-click Databases, point to Tasks, and then click Attach. The Attach Databases dialog box appears.

    To specify the database to be attached, click Add, and in the Locate Database Files dialog box, select the disk drive where the database resides and expand the directory tree to find and select the .mdf file of the database; for example:

    C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\AdventureWorks_Data.mdf

    Important:

    This example assumes that the AdventureWorks database has previously been detached. For information on detaching a database, see How to: Detach a Database (SQL Server Management Studio).

    Optionally, to specify a different name for the database to attach as, enter the name in the Attach as column of the Attach Databases dialog box.

    Optionally, change the owner of the database by selecting a different entry in the Owner column.

    When you are ready to attach the database, click OK.

  • Look at the screen once you have added the file don't just go blindly clicking buttons, *before* you look at the screen.

Viewing 7 posts - 1 through 6 (of 6 total)

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