需要 AEP 帮助
AEP 存储过程函数可以添加额外的参数吗?
Can the AEP Stored procedure functions have additional paramenters added?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
AEP 存储过程函数可以添加额外的参数吗?
Can the AEP Stored procedure functions have additional paramenters added?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
如果我明白你在问什么,答案是肯定的。您可以使用 ALTER PROCEDURE 语句将参数添加到现有 AEP。例如,
您还需要更新过程本身才能使用该参数。
就 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,
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.
假设您想知道如何将参数发送到存储过程然后读取它们,您可以使用所需数量的参数创建函数。您构建的、在执行存储过程时调用的 .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