Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Attaching Database Expand / Collapse
Author
Message
Posted Wednesday, October 28, 2009 8:25 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, January 26, 2011 7:15 AM
Points: 37, Visits: 158
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
Post #809979
Posted Wednesday, October 28, 2009 8:27 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, December 15, 2009 3:29 AM
Points: 33, Visits: 25
Change the owner to be sa in the attach DB dialog
Post #809982
Posted Wednesday, October 28, 2009 8:29 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, January 26, 2011 7:15 AM
Points: 37, Visits: 158
How can i change that could you please guide me
Post #809984
Posted Wednesday, October 28, 2009 8:32 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, December 15, 2009 3:29 AM
Points: 33, Visits: 25
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.
Post #809989
Posted Wednesday, October 28, 2009 8:37 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, January 26, 2011 7:15 AM
Points: 37, Visits: 158
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.
Post #809997
Posted Wednesday, October 28, 2009 8:37 AM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Friday, November 21, 2014 10:01 AM
Points: 746, Visits: 566
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.

Post #809998
Posted Wednesday, October 28, 2009 8:40 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, December 15, 2009 3:29 AM
Points: 33, Visits: 25
Look at the screen once you have added the file don't just go blindly clicking buttons, *before* you look at the screen.
Post #810004
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse