Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
347 B
4
Indexable
Never
EXEC ('USE CIMA_ACCOUNTING; 
       SELECT name, schema_name(schema_id) AS schema_name FROM sys.objects WHERE name = ''ADGroups'' AND type = ''U''; 
       IF OBJECT_ID(''dbo.ADGroups'') IS NOT NULL 
       BEGIN 
           GRANT SELECT ON [dbo].[ADGroups] TO clawsuser; 
           SELECT * FROM [dbo].[ADGroups]; 
       END') AT cima_aws_dev;
Leave a Comment