실행권한만 가지게 셋팅
카테고리 없음 / 2011. 4. 8. 20:31
EXEC sp_change_users_login 'Update_One', 'loginname', 'loginname'
create login loginname with password = 'password'
go
use northwind
go
create user loginname for login loginname
go
GRANT EXECUTE TO loginname
go
EXEC master..sp_dropsrvrolemember @loginame = N'coupon', @rolename = N'sysadmin'
EXEC master..sp_addsrvrolemember @loginame = N'coupon', @rolename = N'sysadmin'
에러는 이렇게 잡으세요~
create proc a
with execute as owner
as
select 'dynamic sql'
go
Denali ?
Denali 에서는 아래와 같은 기능이 추가 되었습니다.
Custom server roles
Mike Walsh blog post: http://bit.ly/AB_Denali_MikeWalsh