如何像在 MS SQL Server 中一样在 MS Access 2013 中创建存储过程?
How can I create a stored procedure in MS Access 2013 like in MS SQL Server?
到目前为止,我自己的研究表明有两种选择:
- CREATE PROCEDURE statement:关闭,但仅限于执行单个 SQL 语句。
- Create a Data Macro: 更类似于 MS SQL Server 中的 "Triggers"。
除了上面列出的方法,还有其他方法吗?
基于 phadaphunk 的回答 here in another SO question:
使用函数模拟存储过程。我找到了教程 here。不过这个方法我没试过
How to use SQL Server Stored Procedures with Microsoft Access using Pass Through Queries。
如果您使用的是 MS Access 2010 或更高版本,存储过程将列在 Named Macros
下的表选项卡中。
希望对您有所帮助。
到目前为止,我自己的研究表明有两种选择:
- CREATE PROCEDURE statement:关闭,但仅限于执行单个 SQL 语句。
- Create a Data Macro: 更类似于 MS SQL Server 中的 "Triggers"。
除了上面列出的方法,还有其他方法吗?
基于 phadaphunk 的回答 here in another SO question:
使用函数模拟存储过程。我找到了教程 here。不过这个方法我没试过
How to use SQL Server Stored Procedures with Microsoft Access using Pass Through Queries。
如果您使用的是 MS Access 2010 或更高版本,存储过程将列在
Named Macros
下的表选项卡中。
希望对您有所帮助。