Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an user for PowerBI reports #1

Open
cmaneu opened this issue Jan 24, 2020 · 2 comments
Open

Create an user for PowerBI reports #1

cmaneu opened this issue Jan 24, 2020 · 2 comments
Assignees

Comments

@cmaneu
Copy link
Member

cmaneu commented Jan 24, 2020

Asked by Nicolas Charles (Microsoft).
Create a readonly user for dev-trashroulette-database.windows.net, database dev-trashroulette.

@cmaneu cmaneu self-assigned this Jan 24, 2020
@cmaneu
Copy link
Member Author

cmaneu commented Jan 24, 2020

CREATE LOGIN surfriderreport
	WITH PASSWORD = '34f80b80-5d59-4af4-840c-6282b5e9eb33' 
GO

USE dev-trashroulette
GO

CREATE USER surfriderreport
	FOR LOGIN surfriderreport
	WITH DEFAULT_SCHEMA = dbo
GO

-- Add user to the database owner role
EXEC sp_addrolemember N'db_datareader', N'surfriderreport'
GO

@ChristopheHvd
Copy link
Contributor

Merci pour le script du coup ;)
Tu sais si on a d'autres user à créer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants