Skip to content

Commit 5752157

Browse files
Merge pull request #18790 from NathanMSFT/patch-4
Changes to CREATE EXTERNAL DATA SOURCE commands
2 parents 180f523 + 1da257a commit 5752157

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

docs/relational-databases/polybase/polybase-configure-mongodb.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ The following Transact-SQL commands are used in this section:
5959

6060
```sql
6161
CREATE EXTERNAL DATA SOURCE external_data_source_name
62-
WITH (LOCATION = '<mongodb://<server>[:<port>]>',
63-
-- PUSHDOWN = ON | OFF,
64-
CREDENTIAL = <credential_name>);
62+
WITH (LOCATION = '<mongodb://<server>[:<port>]>'
63+
[ [ , ] CREDENTIAL = <credential_name> ]
64+
[ [ , ] CONNECTION_OPTIONS = '<key_value_pairs>'[,...]]
65+
[ [ , ] PUSHDOWN = { ON | OFF } ])
66+
[ ; ]
6567
```
6668

6769
1. **Optional:** Create statistics on an external table.
@@ -149,7 +151,7 @@ The following example creates an external data source with the following paramet
149151
```sql
150152
CREATE EXTERNAL DATA SOURCE external_data_source_name
151153
WITH (LOCATION = 'mongodb://mongodb0.example.com:27017',
152-
CONNECTION_OPTION = 'replicaSet=myRepl','tls=true',
154+
CONNECTION_OPTIONS = 'replicaSet=myRepl; tls=true',
153155
PUSHDOWN = ON ,
154156
CREDENTIAL = credential_name);
155157
```

0 commit comments

Comments
 (0)