Skip to content

Commit 436cf70

Browse files
Added more details around Initial Catalog
1 parent b442506 commit 436cf70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/search/search-indexer-how-to-access-private-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ This article assumes a [REST client](search-get-started-rest.md) and uses the RE
128128

129129
1. [Create the data source definition](search-howto-connecting-azure-sql-database-to-azure-search-using-indexers.md) as you would normally for Azure SQL. The format of the connection string is slightly different for a managed instance, but other properties are the same as if you were configuring a data source connection to Azure SQL database.
130130

131-
Provide the connection string that you copied earlier.
131+
Provide the connection string that you copied earlier with an Initial Catalog specified.
132132

133133
```http
134134
POST https://myservice.search.windows.net/datasources?api-version=2024-07-01
@@ -139,7 +139,7 @@ This article assumes a [REST client](search-get-started-rest.md) and uses the RE
139139
"description" : "A database for testing Azure AI Search indexes.",
140140
"type" : "azuresql",
141141
"credentials" : {
142-
"connectionString" : "Server=tcp:contoso.public.0000000000.database.windows.net,1433; Initial Catalog=;Persist Security Info=false; User ID=<your user name>; Password=<your password>;MultipleActiveResultsSets=False; Encrypt=True;Connection Timeout=30;"
142+
"connectionString" : "Server=tcp:contoso.public.0000000000.database.windows.net,1433;Persist Security Info=false; User ID=<your user name>; Password=<your password>;MultipleActiveResultsSets=False; Encrypt=True;Connection Timeout=30;Initial Catalog=<your database name>"
143143
},
144144
"container" : {
145145
"name" : "Name of table or view to index",

0 commit comments

Comments
 (0)