Re: problem with orphaned "dbo" user of an attached database
- From: "Uri Dimant" <urid@xxxxxxxxxxx>
- Date: Thu, 12 Jul 2007 12:15:27 +0300
Holger
db). So, in that case, the "dbo" is orphaned, which leads to the situation
that the owner of the database is not able to access her own db. I know
that
What is authentication are you using?
See if this helps
http://dimantdatabasesolutions.blogspot.com/2007/04/sql-or-windows-authentication.html
"Holger" <Holger@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:73BD641F-C7DF-4EAF-A87E-523FC6F1F28F@xxxxxxxxxxxxxxxx
Hi everybody,
I'm in a situation where I allow my users of SQL Server the creation of
her
own databases. This is been done in order to allow the "creator" (the
owner)
full acces to the created DB. Everything works fine, as long as the DB is
created from scratch, like:
CREATE DATABASE universe
But additionally, my users are also exchanging databases, so they will
also
use
CREATE DATABASE universe ... FOR ATTACH
When attaching a database, the owner of the so created database is the
login
that
performed the operation, which is fine. But, the "dbo" user in the
attached
database is still associated with the original login (before detaching the
db). So, in that case, the "dbo" is orphaned, which leads to the situation
that the owner of the database is not able to access her own db. I know
that
this can be fixed with
ALTER AUTHORIZATION ON DATABASE::universe to [login]
So, after attaching a database, the user can simply all ALTER
AUTHORIZATION.
My problem is that ALTER AUTORIZATION requires "CONTROL SERVER"
permission,
which is simply a synonym for "sysadmin" role membership and therefore not
what I want. All I want my users grant is "CREATE ANY DATABASE"
permission.
Does anybody know a solution besides doing the CREATE DATABASE ... FOR
ATTACH with an adjacent ALTER AUTHORIZATION inside a stored procedure with
a
regarding signature?
Thanks,
Holger
.
- Follow-Ups:
- Prev by Date: Re: problem with orphaned "dbo" user of an attached database
- Next by Date: AD Security group
- Previous by thread: Re: problem with orphaned "dbo" user of an attached database
- Next by thread: Re: problem with orphaned "dbo" user of an attached database
- Index(es):
Relevant Pages
|
|