如何查询远程索引目录
我一直在尝试在 SQL Server 中创建一个链接服务器来访问 远程索引服务目录,但我似乎无法做到这一点。我们打电话吧 远程服务器“remoteServer”和目录“remoteCatalog”
我尝试过:
EXEC sp_addlinkedserver remoteIndexServer, 'Index Server', 'MSIDXS',
'query://remoteServer/remoteCatalog'
然后我确实运行了 SQL
SELECT * FROM OPENQUERY(remoteIndexServer,'select filename from scope()') AS Q
但我得到了错误
OLE DB provider "MSIDXS" for linked server "remoteIndexServer" returned message "Service is not running. ".
Msg 7320, Level 16, State 2, Line 3
Cannot execute the query "select filename from scope()" against OLE DB provider "MSIDXS" for linked server "remoteIndexServer".
I've been trying to create a linked server in SQL Server that accesses a
remote Index Service catalog, but I can't seem to do it. Let's call
the remote server "remoteServer" and the Catalog "remoteCatalog"
I've tried this:
EXEC sp_addlinkedserver remoteIndexServer, 'Index Server', 'MSIDXS',
'query://remoteServer/remoteCatalog'
and then i did run the SQL
SELECT * FROM OPENQUERY(remoteIndexServer,'select filename from scope()') AS Q
But i got the error as
OLE DB provider "MSIDXS" for linked server "remoteIndexServer" returned message "Service is not running. ".
Msg 7320, Level 16, State 2, Line 3
Cannot execute the query "select filename from scope()" against OLE DB provider "MSIDXS" for linked server "remoteIndexServer".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以前经历过这个问题。这是凭记忆写的,所以请原谅任何错误,但如果我没记错的话,您将需要执行以下操作。
在本地 SQL Server 上安装索引服务(以便提供程序可用)。
将链接服务器添加到此
LOCAL
索引服务。然后,您可以按如下方式运行查询。
如果这不起作用,请告诉我,某处有一篇文章描述了如何执行此操作。如果需要的话我可以查一下,但我认为上面是对的。
I have experienced this issue before. This is from memory so excuse any errors but if I recall correctly you will need to do the following.
Install the indexing service on your local SQL Server (this is so the provider is available).
Add a linked server to this
LOCAL
indexing service.You can then run you query as below
If that doesn't work let me know, there is a post somewhere that describes how to do this. I can look it up if necessary but I think the above is right.