Published on InterSystems Developer Community (https://community.intersystems.com)

主页 > 如何在远程SQL Server 数据库执行存储过程?

问题
Michael Lei · 七月 8, 2022

如何在远程SQL Server 数据库执行存储过程?

你好。

我想访问一个远程SQL Server数据库中的存储过程。我对Object Script很陌生。

该存储过程有3个参数:2个日期时间参数和1个整数。

哪种方法最好呢?我想知道我是否可以在object script中使用链接存储过程的功能或一些SQL语句。

这个存储过程返回一组行,我想读取、转换并保存在一个持久化类中。

先谢谢了。

Hi,

I want to access a Stored Procedure in a remote SQL Server Database. I am quite new to Object script.

The stored procedure has 3 parameters: 2 datetime parameters and 1 integer.

Which is the best way to do that? I'm wondering if I can use the link stored procedure feature inside object script or some SQL statement in Object Script.

This SP returns a set of rows which I want to read, transform and save in a persistent class.

Thanks in advance,

#InterSystems IRIS

源 URL:https://cn.community.intersystems.com/post/%E5%A6%82%E4%BD%95%E5%9C%A8%E8%BF%9C%E7%A8%8Bsql-server-%E6%95%B0%E6%8D%AE%E5%BA%93%E6%89%A7%E8%A1%8C%E5%AD%98%E5%82%A8%E8%BF%87%E7%A8%8B%EF%BC%9F