Skip to content

Instantly share code, notes, and snippets.

@kanglicheng
Forked from a30001539/access.sql
Created July 24, 2019 02:14
Show Gist options
  • Save kanglicheng/3c9a9d9a975522644b71aa6a191439dd to your computer and use it in GitHub Desktop.
Save kanglicheng/3c9a9d9a975522644b71aa6a191439dd 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