调用格式为:

 

EXEC OPENDATASOURCE (
     'SQLOLEDB',
     'Data Source=10.161.34.xx;User ID=sa;Password=aaa'
     ).dbname.dbo.spname

 

需要注意的是,SQL Server 2005中调用另外实例中的存储过程时需要到

'Configuration Tools' >>

'SQL Server Surface Area Configuration' >>

'Surface Area Configuration for Features' >>

选择'Enable OPENROWSET and OPENDATASOURCE support'

 

相关文章:

  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
相关资源
相似解决方案