SELECT * FROM OPENROWSET('SQLOLEDB', 'Server=P20107-PC;UID=test;PWD=test;','select * from database.dbo.table') ;

SELECT * FROM OPENDATASOURCE('SQLOLEDB', 'Data Source=P20107-PC;User ID=test;Password=test').database.dbo.table where column= ''

不明白这2中写法的区别 

OPENDATASOURCE 唯一觉得好的就是后面能够where 要不然数据量大就悲剧了。

相关文章:

  • 2021-04-28
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-06-15
猜你喜欢
  • 2021-07-15
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2021-12-06
  • 2022-01-14
  • 2021-12-08
相关资源
相似解决方案