can make stored procedure or function in Access 2003?

后端 未结 2 1781
面向向阳花
面向向阳花 2021-01-27 06:53

In Access 2003, can we create stored procedure or function?

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-27 07:48

    For Access 2003, the answer is no.

    Access 2010 does have table triggers and store procedures. These are true engine level routines that run as a result of row updates. So forms or VBA recordset code or sql updates that cause a row modify will cause the store procedure and table level code to run. In fact, even external connections via ODBC from vb.net, or even VB6 will cause these store procedures to run.

    However prior to Access 2010 you do not have store procedures if you use the default database engine. However, you can choose a different data engine then JET for your Access applications and when you do this then yes you can have store procedures, but you have to use the tools that come with whatever data base engine you have chosen to use with Access. So, keep in mind that just like when you build a web site, you then can go out and choose what database engine you use. The same goes for ms-access and you are free to go out and choose a database engine that has store procedures to be used with Access.

    As noted, the exception to this is that Access 2010 does have table level triggers and store procedures now.

提交回复
热议问题