Access is denied when attaching a database
Run SQL Server Management Studio as an Administrator. (right click-> run as administrator) that took care of all the weirdness in my case. SQL SRV EXPRESS 2008 R2. Windows 7
Run SQL Server Management Studio as an Administrator. (right click-> run as administrator) that took care of all the weirdness in my case. SQL SRV EXPRESS 2008 R2. Windows 7
Quote by @DAC In short: SID = the unique name of your DB, ServiceName = the alias used when connecting Not strictly true. SID = unique name of the INSTANCE (eg the oracle process running on the machine). Oracle considers the “Database” to be the files. Service Name = alias to an INSTANCE (or many … Read more
Use the SC command, like this (you need to be on a command prompt to execute the commands in this post): SC STOP shortservicename SC DELETE shortservicename Note: You need to run the command prompt as an administrator, not just logged in as the administrator, but also with administrative rights. If you get errors above … Read more