Skip to content

Commit 898fffd

Browse files
authored
PR review edit
1 parent 0871a8e commit 898fffd

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

articles/machine-learning/how-to-identity-based-data-access.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -139,22 +139,9 @@ adls2_dstore = Datastore.register_azure_data_lake_gen2(workspace=ws,
139139
filesystem='tabular',
140140
account_name='myadls2')
141141
```
142-
### Azure SQL database
143-
For an Azure SQL database, use [register_azure_sql_database()](/python/api/azureml-core/azureml.core.datastore.datastore#register-azure-sql-database-workspace--datastore-name--server-name--database-name--tenant-id-none--client-id-none--client-secret-none--resource-url-none--authority-url-none--endpoint-none--overwrite-false--username-none--password-none--subscription-id-none--resource-group-none--grant-workspace-access-false----kwargs-) to register a datastore that connects to an Azure SQL database storage.
144-
145-
The following code creates and registers the `credentialless_sqldb` datastore to the `ws` workspace and assigns it to the variable, `sqldb_dstore`. This datastore accesses the database `mydb` in the `myserver` SQL DB server.
146-
147-
```python
148-
# Create a sqldatabase datastore without credentials
149-
150-
sqldb_dstore = Datastore.register_azure_sql_database(workspace=ws,
151-
datastore_name='credentialless_sqldb',
152-
server_name='myserver',
153-
database_name='mydb')
154-
155-
```
156142

157143
### Azure SQL database
144+
158145
For an Azure SQL database, use [register_azure_sql_database()](/python/api/azureml-core/azureml.core.datastore.datastore#register-azure-sql-database-workspace--datastore-name--server-name--database-name--tenant-id-none--client-id-none--client-secret-none--resource-url-none--authority-url-none--endpoint-none--overwrite-false--username-none--password-none--subscription-id-none--resource-group-none--grant-workspace-access-false----kwargs-) to register a datastore that connects to an Azure SQL database storage.
159146

160147
The following code creates and registers the `credentialless_sqldb` datastore to the `ws` workspace and assigns it to the variable, `sqldb_dstore`. This datastore accesses the database `mydb` in the `myserver` SQL DB server.

0 commit comments

Comments
 (0)