You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/storage/catalog/azuresqldw/index.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,24 +20,25 @@ To connect your Azure database to Segment once you've provisioned your dedicated
20
20
21
21
### Give Segment access to your SQL Data Warehouse
22
22
23
-
1. Create a server login for Segment to use. This can be accomplished by running the following SQL command on your SQL Server's `master` database.
23
+
1. Create a server login for Segment to use. This can be accomplished by running the following SQL command on your SQL Server's `master` database:
24
24
```sql
25
25
CREATE LOGIN Segment WITH PASSWORD ='<strong password>';
26
26
```
27
27
28
28
2. Connect to your Azure database.
29
29
30
-
3. Segment uses Azure Blob Storage to hold data that is being loaded into Azure Synapse Analytics. In order to facilitate this, a `MASTER KEY` is needed in order for credentials that Segment saves to the database to be encrypted. If you are using your Azure Synapse Analytics instance for more than just a Segment integration, it is possible you already have a master key. Running the command more than once will not create a new master key.
30
+
3. Segment uses Azure Blob Storage to hold data that is being loaded into Azure Synapse Analytics. In order to facilitate this, a `MASTER KEY` is needed in order for credentials that Segment saves to the database to be encrypted. If you are using your Azure Synapse Analytics instance for more than just a Segment integration, it is possible you already have a master key. Running the command more than once will not create a new master key.
31
+
To create a master key, run the following command:
31
32
```sql
32
33
CREATE MASTER KEY;
33
34
```
34
35
35
-
4. Create a new database user using the server login that was created previously:
36
+
4. Create a new database user using the server login that you created in a previous step:
36
37
```sql
37
38
CREATEUSERSegment FOR LOGIN Segment;
38
39
```
39
40
40
-
5. This new user will need permissions to load data, and manage the resources it needs:
41
+
5. This new user will need database-level permissions to load data and manage the resources it needs:
41
42
```sql
42
43
GRANT CONTROL TO Segment;
43
44
```
@@ -55,15 +56,15 @@ To connect your Azure database to Segment once you've provisioned your dedicated
55
56
56
57
### Configure an Azure Synapse Analytics Destination in Segment
57
58
58
-
In order to set up the necessary destination in Segment, you'll need the following pieces of information:
59
+
In order to set up the Azure Synapse Analytics destination in Segment, you'll need the following pieces of information:
59
60
60
-
-**Server Name:** the name of the SQL Server resource that houses your SQL Data Warehouse.
61
+
-**Server Name:** the name of the SQL Server resource that houses your SQL Data Warehouse
61
62
-**Database:** the name of the SQL Data Warehouse database resource
62
63
-**Username:** the name of the user you created above
63
64
-**Password:** the password of the user you created above
64
65
65
66
To add a Azure Synapse Analytics destination in the Segment app:
66
-
1. Log in to Segment and select the **Connections** tab. Select**Add Destination**.
67
+
1. Log in to Segment and select the **Connections** tab. Click**Add Destination**.
67
68
2. Select the **Storage Destinations** tab and click the **Azure SQL Data Warehouse** destination.
68
69
3. Select the source(s) you want to sync with the Azure SQL Data Warehouse destination, and click **Next**.
69
70
4. Provide a name for your destination, and then enter data into each of the fields in the "Enter your Credentials" section. For the **Server Name** field, enter only the part of the server name prior to `.database.windows.net`.
@@ -86,4 +87,4 @@ Users with a Business Tier plan can enable Selective Sync for their Azure Synaps
86
87
87
88
### Segment is not able to connect to Azure Synapse Analytics
88
89
89
-
Make sure you configure a [server-level firewall rule](https://docs.microsoft.com/en-us/azure/sql-data-warehouse/create-data-warehouse-portal#create-a-server-level-firewall-rule){:target="_blank"} that allows connections from the [Segment IPs](/docs/connections/storage/warehouses/faq/#which-ips-should-i-allowlist).
90
+
If you encounter this error, create a [server-level firewall rule](https://docs.microsoft.com/en-us/azure/sql-data-warehouse/create-data-warehouse-portal#create-a-server-level-firewall-rule){:target="_blank"} that allows connections from the [Segment IPs](/docs/connections/storage/warehouses/faq/#which-ips-should-i-allowlist).
0 commit comments