Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can i create new role and provide owner privilege for specific database in SQL Server?

share|improve this question
    
This will be migrated to ServerFault, please look there for good answers. –  Lance Roberts Jan 13 '10 at 21:42
    
I'd consider this to be an SO question if the OP wants to be able to script permissions. –  David Hall Jan 13 '10 at 21:48
add comment

migrated from stackoverflow.com Jan 13 '10 at 22:27

This question came from our site for professional and enthusiast programmers.

1 Answer

CREATE ROLE NewRole
EXEC sp_addrolemember 'db_owner', 'NewRole'
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.