February 23, 2012 at 5:37 am
I'm able to create Roles, etc at the database level but when I tried it at the Server Level using T-SQL I did not get anywhere.
I want to create a Server Role, Addrolemember dbcreater & bulkadmin to the Server Role that I created, and Add Logins to the Server Role that I Created.
Any help would be greatly appreciated.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 23, 2012 at 7:00 am
You cant create custom server roles unless you have SQL 2012.
February 23, 2012 at 7:06 am
Thanks.
When I execute the following statment from master:
EXEC sp_addrolemember N'dbcreator', N'jallen'
I get the following error:
Msg 15014, Level 16, State 1, Procedure sp_addrolemember, Line 36
The role 'dbcreator' does not exist in the current database.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 23, 2012 at 7:07 am
thats to add a user to a DB role, for a server role you need
sp_addsrvrolemember
February 23, 2012 at 7:13 am
That's right, forgot about that sp, thanks.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 23, 2012 at 7:15 am
not to worry, easy one that, especially for just three characters difference in the SP name
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply