Mais abaixo, o script para dar grant create para o usuário, e grant para rodar o SQL Profiler.
--creating the script to grant in all tables
use [databasename]
go
SELECT 'GRANT SELECT, INSERT, UPDATE, DELETE ON ' + NAME + ' TO ' + '[Domain\Username]'
FROM SYSOBJECTS
WHERE TYPE = 'U'
AND CATEGORY <> 2 -ignore system tables
ORDER BY NAME
Copie as linhas retornadas no select e execute
-- creating script to grant in all procedures
use [databasename]
go
declare @sql nvarchar(4000)
declare @db sysname ; set @db = DB_NAME()
declare @u sysname ; set @u = QUOTENAME('Domain\Username')
-- or -- declare @u sysname ; set @u = QUOTENAME('username')select 'grant exec on ' + QUOTENAME(ROUTINE_SCHEMA) + '.' +
QUOTENAME(ROUTINE_NAME) + ' TO ' + @u
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = 'PROCEDURE'
Copie as linhas retornadas no select e execute
--grant create procedure
grant create procedure to [Domain\Username]
--grant to run SQL Profiler
grant alter trace to [Domain\User]
Um comentário:
zn427 vivobarefoot belgique,timberland skor,vionicsneakersnederland,eccodama,timberlandhombre,timberland apavi,danner hiking boots uk,dr martens japan,vionic sko ym629
Postar um comentário