Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create stored procedure in MS Access?

I would like to know if it's possible to create a StoredProcedure to Insert data in an Acces database. I've tried a couple of thing but nothing so far seem to do the trick.

Thanks

like image 581
Sabourin01 Avatar asked Apr 13 '12 16:04

Sabourin01


People also ask

Can you create a stored procedure in MS Access?

Creates a stored procedure. Note: The Microsoft Access database engine does not support the use of CREATE PROCEDURE, or any of the DDL statements, with non-Microsoft Access database engine databases.

What is a stored procedure in MS Access?

The equivalent to an INSERT, UPDATE or DELETE query in SQL Server is a stored procedure. Stored procedures are in fact more flexible than a simple query that performs one step; for example, updating data in a single table. They are mini programs that can range from a few lines to several pages of code.


1 Answers

I know it is possible to create a Stored Procedure directly in access but it isn't pretty to do.

Your best options from here would be to :

  • Simulate a Stored Procedured using a function. I found a tutorial here. But I haven't tried this approach.
  • Another Popular approach seems to be to import an SQLServer Stored Procedure and Import it in Acess. Try this link if you like this approach.
  • If your using MS Access 2010, StoredProcedures will be listed in the tables tab under Named Macros.

Hope this helps.

like image 117
phadaphunk Avatar answered Sep 21 '22 05:09

phadaphunk