Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 5123 Error when trying to re-attach a database.

Author  Topic 

Shrews14
Starting Member

37 Posts

Posted - 2009-04-21 : 11:31:30
Hi,

Just need a quick work around for this error.

I have a database which runs fine, I detach it, copy it and then attempt to re-attach it, thats when i get the 5123 error.

It appears to be a vista issue as if i turn off the UAC (User Acount Control) and restart with it off then i can re-attach it no problem. Anyway i can do this without having to re-boot my machine 10 times a day!!

Regards

nr
SQLTeam MVY

12543 Posts

Posted - 2009-04-21 : 12:27:10
Do a backup and restore instead of a detach.
Should do a backup before a detach anyway in case it won't attach again.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

ljeremie
Starting Member

2 Posts

Posted - 2009-06-16 : 04:24:26
Hello,
I had the same problem. You need to started SQL Management Studio with Administrator rights (right-click, execute as an administrator).
Hope this will help
Go to Top of Page
   

- Advertisement -