需要 AEP 帮助

发布于 2024-09-08 01:53:56 字数 28 浏览 2 评论 0原文

AEP 存储过程函数可以添加额外的参数吗?

Can the AEP Stored procedure functions have additional paramenters added?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

表情可笑 2024-09-15 01:53:56

如果我明白你在问什么,答案是肯定的。您可以使用 ALTER PROCEDURE 语句将参数添加到现有 AEP。例如,

ALTER PROCEDURE MyAEP ( 
      num Integer,
      newparam Integer
   ) 
   FUNCTION 
     "TestSP"
   IN COMLIBRARY 
     "AdvantageAEP1.aep_procedures";

您还需要更新过程本身才能使用该参数。

就 DLL 或程序集中的函数本身而言,您无法更改参数列表。服务器期望该功能有一个非常具体的原型。

If I understand what you are asking, the answer is yes. You can use the ALTER PROCEDURE statement to add a parameter to an existing AEP. For example,

ALTER PROCEDURE MyAEP ( 
      num Integer,
      newparam Integer
   ) 
   FUNCTION 
     "TestSP"
   IN COMLIBRARY 
     "AdvantageAEP1.aep_procedures";

You would also need to update the procedure itself to make use of the parameter.

As far as the function itself in the DLL or assembly, you cannot change the parameter list. The server expects a very specific prototype for the function.

长不大的小祸害 2024-09-15 01:53:56

假设您想知道如何将参数发送到存储过程然后读取它们,您可以使用所需数量的参数创建函数。您构建的、在执行存储过程时调用的 .NET 程序集本身会获取非常具体的参数(如 Mark 所提到的)。
您的任务是使用传递给您的连接来打开 __input 表并读取存储在那里的参数值,并根据需要对其进行操作。
如果您获得 9.1 版的帮助文件(我相信),其中所有帮助都在一个文件中,您会发现 Cary Jensen 的书也包含在内,他在第 7 章中有几个关于使用 .NET 通过编写存储过程的部分C# 和 VB.Net

Assuming you are wondering how to send parameters to the stored procedure and then read them, you create your function with as many parameters as you need. The .NET assembly that you build to be called when your execute the stored procedure gets very specific parameters itself (as was mentioned by Mark).
Your task is to use the connection that you are passed to open the __input table and read the parameter values that are stored there, and operate on them as you need to.
If you get the help file as of 9.1 (I believe) where all of the help is in one file, you will find Cary Jensen's book ALSO included, and he has a couple of sections in Chapter 7 on writing stored procedures using .NET via C# and VB.Net

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文