简体   繁体   English

链接服务器未显示在数据库列表中

[英]Linked server not showing on database list

I was hoping someone could help me understand this. 我希望有人可以帮助我理解这一点。

When I log into SQL server I connect to server name "orange" after that I've primarily been working in the following: 当我登录到SQL Server时,我连接到服务器名称“ orange”,之后我主要从事以下工作:

select *
from openquery (lemon,'
...
...
with ur')

I guess what I want to know is all the different databases besides lemon there are so I can start learning where other data is kept so I ran the following: 我想我想知道的是除柠檬以外的所有其他数据库,因此我可以开始学习保存其他数据的位置,因此我运行了以下数据库:

SELECT name FROM master.sys.databases

I expected to see lemon on the list but I do not, so what is lemon if not a database? 我希望柠檬会出现在列表中,但我没有看到柠檬,如果不是数据库,柠檬是什么? What am I seeing on the list following selecting the names of databases? 选择数据库名称后,我在列表中看到什么? Does every name here have tables that I can pull from? 这里的每个名字都有可从中提取的表吗?

edit: I forgot to mention lemon is db2, would a db2 database not show up from the above? 编辑:我忘了说柠檬是db2,从上面不会显示db2数据库吗?

In SQL Server Management Studio (SSMS), view the Object Explorer. 在SQL Server Management Studio(SSMS)中,查看对象资源管理器。 Then, expand Server Objects then Linked Servers . 然后,依次展开“ Server Objects Linked Servers It will list all of the linked servers. 它将列出所有链接的服务器。

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

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