Skip to content

Commit 0ffc804

Browse files
committed
[netlify-build]
1 parent 4d86d3c commit 0ffc804

File tree

1 file changed

+17
-12
lines changed
  • src/connections/reverse-etl/reverse-etl-source-setup-guides

1 file changed

+17
-12
lines changed

src/connections/reverse-etl/reverse-etl-source-setup-guides/azure-setup.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,42 +12,47 @@ At a high level, when you set up Azure dedicated SQL pools for Reverse ETL, the
1212
## Required permissions
1313
Make sure the user you use to connect to Segment has permissions to use that warehouse. You can follow the process below to set up a new user with sufficient permissions for Segment’s use.
1414

15+
* To create a login in your master database, run:
16+
17+
```
18+
CREATE LOGIN <login name of your choice> WITH PASSWORD = 'Str0ng_password'; -- password of your choice
19+
```
20+
1521
> info ""
16-
> Execute all commands in the database where your data resides, except the first `CREATE LOGIN` command, which you need to execute in the master database.
22+
> Execute the commands below in the database where your data resides.
23+
24+
* To create a user for Segment, run:
1725
18-
* To create a login and user for Segment, run:
19-
2026
```
21-
CREATE LOGIN SegmentReverseETLLogin WITH PASSWORD = 'Str0ng_password'; -- password of your choice
22-
CREATE USER SegmentReverseETLUser FOR LOGIN SegmentReverseETLLogin;
27+
CREATE USER <user name of your choice> FOR LOGIN <login name of your choice>;
2328
```
2429
2530
* To grant access to the user to read data from all schemas in the database, run:
2631
2732
```
28-
EXEC sp_addrolemember 'db_datareader', 'SegmentReverseETLUser';
33+
EXEC sp_addrolemember 'db_datareader', '<user name of your choice>';
2934
```
3035
3136
* To grant Segment access to read from certain schemas, run:
3237
3338
```
34-
CREATE ROLE SegmentReadRole;
35-
GRANT SELECT ON SCHEMA::[schema_name] TO SegmentReadRole;
36-
EXEC sp_addrolemember 'SegmentReadRole', 'SegmentReverseETLUser';
39+
CREATE ROLE <role name of your choice>;
40+
GRANT SELECT ON SCHEMA::[schema_name] TO <role name of your choice>;
41+
EXEC sp_addrolemember '<role name of your choice>', '<user name of your choice>';
3742
```
3843
3944
* To grant Segment access to create a schema to keep track of the running syncs, run:
4045
4146
```
42-
GRANT CREATE SCHEMA TO SegmentReverseETLUser;
47+
GRANT CREATE SCHEMA TO <user name of your choice>;
4348
```
4449
4550
* If you want to create the schema yourself and then give Segment access to it, run:
4651
4752
```
4853
CREATE SCHEMA __segment_reverse_etl;
49-
GRANT CONTROL ON SCHEMA::__segment_reverse_etl TO SegmentReverseETLUser;
50-
GRANT CREATE TABLE ON DATABASE::[database_name] TO SegmentReverseETLUser;
54+
GRANT CONTROL ON SCHEMA::__segment_reverse_etl TO <user name of your choice>;
55+
GRANT CREATE TABLE ON DATABASE::[database_name] TO <user name of your choice>;
5156
```
5257
5358
## Set up guide

0 commit comments

Comments
 (0)