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: articles/synapse-analytics/sql/query-cosmos-db-analytical-store.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,31 +50,34 @@ OPENROWSET(
50
50
) [ < with clause > ] AS alias
51
51
```
52
52
53
-
The SQL connection string for Azure Cosmos DB specifies the Azure Cosmos DB account name, database name, database account master key, and an optional region name to the `OPENROWSET` function. Some of this information can be taken from the standard Azure Cosmos DB connection string.
53
+
The SQL connection string for Azure Cosmos DB includes the following components:
54
+
-**Account Name** - The name of the Azure Cosmos DB account you are targeting.
55
+
-**Database Name** - The container name, specified without quotation marks in the OPENROWSET syntax. If the container name contains special characters (e.g., a dash -), it should be enclosed in square brackets ([]).
56
+
-**Region Name** (optional) - The region of your CosmosDB analytical storage. If omitted, the container's primary region is used.
57
+
-**AuthType** - set this option to `ManagedIdentity` if accessing CosmosDB using the Synapse workspace Managed Identity instead of the account key.
58
+
-**Key** - The master key for accessing CosmosDB data, used if not utilizing the Synapse workspace managed identity.
59
+
-**Endpoint** (optionsl) - required if your CosmosDB account does not follow the standard `*.documents.azure.com` format.
54
60
55
-
Convert from the standard Azure Cosmos DB connection string format:
61
+
Some of this information can be derived from the standard Azure Cosmos DB connection string:
> There's another optional parameter in connection string called `endpoint`. The `endpoint` param is needed for accounts that don't match the standard `*.documents.azure.com` format. For example, if your Azure Cosmos DB account ends with `.documents.azure.us`, make sure that you add `endpoint=<account name>.documents.azure.us` in the connection string.
76
80
77
-
The Azure Cosmos DB container name is specified without quotation marks in the `OPENROWSET` syntax. If the container name has any special characters, for example, a dash (-), the name should be wrapped within square brackets (`[]`) in the `OPENROWSET` syntax.
78
81
79
82
### [OPENROWSET with credential](#tab/openrowset-credential)
0 commit comments