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.
我有一个通过 ref 游标接受值列表的 oracle 存储过程。该 oracle 数据库在单独的 SQL Server 2008 实例中设置为链接服务器。
如何在 SQL 中使用此过程,传递表、行或表值参数?
我知道这个问题很久以前就被问过了,但是对于谷歌搜索并看到这篇文章的人来说......
听起来你需要做一个openquery。
这基本上将“选择...”部分(可能是存储过程执行)命令发送到链接服务器并等待响应。
SELECT * FROM OPENQUERY(Your_Linked_Server_Name , 'select * from TableName where RecordID = 4')