Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我正在运行这样的查询:
从表名中选择 col1
它给我返回了两列:
服务器名称 | col1
我以前没有遇到过这个。我敢肯定它非常简单,但在网上搜索却非常困难。有什么办法可以让 col1 回来吗?
在 SSMS 中,您可以选择一次对多个服务器/数据库运行查询。当您这样做时,每个结果都会添加一个带有服务器名称的附加列。这很可能是这里发生的事情。关闭查询窗口,打开一个新窗口并确保您直接连接到有问题的服务器。那应该删除该列。
更多信息:http: //msdn.microsoft.com/en-us/library/bb964743.aspx