Skip to content

Instantly share code, notes, and snippets.

@a30001539
Created July 24, 2019 01:38
Show Gist options
  • Save a30001539/d8d5e8fc18812dd83acf0ceb32a63ec6 to your computer and use it in GitHub Desktop.
Save a30001539/d8d5e8fc18812dd83acf0ceb32a63ec6 to your computer and use it in GitHub Desktop.
add uer to DB
EXEC sp_addrolemember db_datawriter,[[email protected]]
EXEC sp_addrolemember db_datareader,[[email protected]]
GRANT EXECUTE on SCHEMA :: etl to [[email protected]]
GRANT EXECUTE on DATABASE :: edpdevdb to [[email protected]]
GRANT EXECUTE on SCHEMA :: "external" to [[email protected]]
GRANT EXECUTE on SCHEMA :: staging to [[email protected]]
GRANT CREATE PROCEDURE on DATABASE :: edpdevdb to [[email protected]]
GRANT CREATE TABLE on DATABASE :: edpdevdb to [[email protected]]
GRANT ALTER ANY EXTERNAL FILE FORMAT to [[email protected]]
GRANT ALTER ANY EXTERNAL DATA SOURCE to [[email protected]]
GRANT ALTER on SCHEMA :: "external" to [[email protected]]
GRANT ALTER on SCHEMA :: staging to [[email protected]]
GRANT ALTER on SCHEMA :: etl to [[email protected]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment