Re: GRANT CREATE DATABASE TO a domain user account or group in SQL 2005



Try:

GRANT CREATE DATABASE TO [DomainName\DomainUserName]

(Use square brackets instead of quotes.

--
Arnie Rowland*
"To be successful, your heart must accompany your knowledge."



"Joe" <jwdaigle@xxxxxxxxxxxxx> wrote in message
news:%236qm7LPpGHA.4116@xxxxxxxxxxxxxxxxxxxxxxx
Is it possible to GRANT CREATE DATABASE TO a domain user account or group?
I have both SQL Express 2005 & SQL 2005 Developer edition machines, both
have windows integrated security enabled.

I am trying to do something like:
GRANT CREATE DATABASE TO 'DomainName\DomainUserName'

I get an error that complains about the '\' being incorrect syntax.

However, if I do a
sp_addsrvrolemember 'DomainName\DomainUserName', 'dbcreator'
that works like a champ.


I have also tried this same test on a machine that is not part of the
domain (changing domain name to machine name of course).


Is this supported? How can I do it? Can I specify a domain group in it
instead?


Thanks for any information,

Joe




.



Relevant Pages

  • Re: No db access after publishing web site
    ... GRANT UPDATE TO ... If I detach and attach this database on a different PC (according that PC ... Cannot open database "pago" requested by the login. ... Are you detaching/attaching the SQL Server Express database correctly ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: oracle XE impdp.exe problem
    ... I did my own - ora. ... I created new tablespace and user xxx as: ... GRANT UNLIMITED TABLESPACE TO xxx; ... when i create new database i have this strange error. ...
    (comp.databases.oracle.server)
  • RE: all operation not work (insert delete update) / maybepermissionproblem
    ... The database server cannot find a table or view specified in the statement. ... trying to grant USAGE privileges on a user-defined type. ... Betreff: Re: all operation not work / maybe permissionproblem ... I called this command just you are told me: onstat -g sql and I got the following: ...
    (comp.databases.informix)
  • Re: all operation not work (insert delete update) / maybepermissionproblem
    ... The database server cannot find a table or view specified in the statement. ... trying to grant USAGE privileges on a user-defined type. ... Betreff: Re: all operation not work / maybe permissionproblem ... I called this command just you are told me: onstat -g sql and I got the following: ...
    (comp.databases.informix)
  • Re: Simple SQL Security Question From SQL Newbie
    ... >exec sp_grantdbaccess 'WIN2K\ASPNET' ... >VS.NET, I can use the server explorer and I can see the database, it's ... >login 'WebCalendar'. ... I also did a GRANT ALL on y2003 TO ASPNET ...
    (microsoft.public.sqlserver.security)