'SQLOLEDB',

                'Data Source=服务器1;User ID=;Password='

               ).1.dbo.1 as g inner join OPENDATASOURCE(

                'SQLOLEDB',

                'Data Source=服务器1;User ID=;Password='

               ).1.dbo.1 as d  on g.字段1=d.字段1 inner join OPENDATASOURCE(

                'SQLOLEDB',

                'Data Source=服务器1;User ID=;Password='

               ).2.dbo.1 as s on g.字段1=s.字段1 where g.字段2=0 and g.字段3=0 and s.字段4=6

对于同一服务器下不同的数据库,可以应用pubs..table1的形式或者pubs.dbo.table1访问 

相关文章:

  • 2022-02-02
  • 2022-02-16
  • 2021-09-12
  • 2021-05-16
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2021-09-16
  • 2021-09-01
  • 2021-11-26
  • 2022-03-09
  • 2021-07-13
相关资源
相似解决方案