Home Forums SQL Server 2005 SQL Server 2005 General Discussion Sql Script to change the Login Permission RE: Sql Script to change the Login Permission
Oliiii
SSCertifiable
Points: 5328
More actions
October 1, 2010 at 5:15 am
#1230114
Try this on each dbs:USE [Datasae1]
USE [Datasae1]
GO
EXEC sp_addrolemember N'db_ddladmin', N'testuser'
EXEC sp_droprolemember N'db_owner', N'testuser'
GRANT EXECUTE TO testuser
You have to do it on each DB since you handle the DB security at the DB level 🙂