简体   繁体   English

将 Azure 搜索连接到托管实例 SQL

[英]Connect Azure Search to Managed Instance SQL

Hello I am looking information on how to connect Azure Search Service to Managed Instance SQL on Azure您好,我正在寻找有关如何将 Azure 搜索服务连接到 Azure 上的托管实例 SQL 的信息

In other words换句话说

using the following for Managed instance in my indexer should work fine there is no difference btw implementing this for Azure SQL database and Azure SQL MI ?在我的索引器中对托管实例使用以下内容应该可以正常工作,顺便说一句,为 Azure SQL 数据库和 Azure SQL MI 实现这个没有区别吗?

    "name" : "myazuresqldatasource", 
    "type" : "azuresql", 
    "credentials" : { 
    "connectionString" : "Server=tcp:<your server>.database.windows.net,1433;Database=<your database>;User ID=<your user name>;Password=<your password>;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;" }, 
"container" : { "name" : "name of the table" } –

You can connect your search service to managed SQL database by going through import data flow in Azure Portal:您可以通过 Azure 门户中的导入数据流将搜索服务连接到托管 SQL 数据库:

在此处输入图片说明

Then in Data source section select Azure SQL Database and there you can either select existing (managed) database or choose to input connection string.然后在Data source部分选择Azure SQL Database ,您可以在那里选择现有(托管)数据库或选择输入连接字符串。 You should do the latter.你应该做后者。

yes, he is looking for a connection string.是的,他正在寻找一个连接字符串。 His data source is SQL-MI because Microsoft has not provided any specific documentation if the connection string type will be the same if the data source is SQL or SQL MI.他的数据源是 SQL-MI,因为如果数据源是 SQL 或 SQL MI,连接字符串类型是否相同,Microsoft 没有提供任何特定文档。 Actually, I am also unsure about that.其实我也不确定。 Do I need to change my connection string type parameter if the source is SQL MI?如果源是 SQL MI,我是否需要更改我的连接字符串类型参数?

The Issues is resolve.问题是解决。 If you want to connect to SQLMI the connection string should include database name.如果要连接到 SQLMI,连接字符串应包含数据库名称。 "Server=tcp:sqlmiservice.database.windows.net,{port};Database={name};User Id={Id};Password={pwd}". “服务器=tcp:sqlmiservice.database.windows.net,{port};Database={name};User Id={Id};Password={pwd}”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM