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.
我正在尝试查询与我正在运行的存储过程不在同一台服务器上的数据库视图。
我听说过使用“链接服务器”,但我根本无法访问服务器的配置......
提前致谢 !
使用开放数据源:
SELECT * FROM OPENDATASOURCE( 'SQLOLEDB', 'Data Source=ServerName;User ID=MyUID;Password=MyPass' ).Northwind.dbo.Categories
您可以这样做,但它确实需要 DBA 设置链接。如果您无权访问服务器的配置并且 DBA 不在船上,那么您就不走运了。