+ Reply to Thread
Results 1 to 4 of 4

Thread: MS Access Stored Procedures?

  1. #1
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    2,386
    Blog Entries
    5
    Real Name
    Wolff
    Rep Power
    15

    MS Access Stored Procedures?

    Just to prove that I'm not an Access developer, I posit the following:

    Is there an equivalent to an SQL Server Stored Procedure in MS Access? Apart from a Stored Query that is.

    For example, could the following sproc be replicated in MS Access
    Code:
    Create Procedure Foo as
    
          Declare @A int;
        
         Begin Transaction
          Select @A = FieldA
            From someTable
            Where FieldB = 'some search cirteria';
     
          If @A is not Null 
             Insert Into someOtherTable
               Select FieldX, FieldY, FieldB
                From yetAnotherTable
               Where yetAnotherTableID = @A
    
         If [some more statements] = 'did not work' Begin
             Rollback Transaction;
             return
         End
    
        Commit Transaction
    Return
    
    Wolffy
    .-- ----- ..-. ..-. -.--
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Void where prohibited by law. Not valid in California. Your mileage may vary.

  2. #2
    Moderator don94403 is a jewel in the rough don94403 is a jewel in the rough don94403 is a jewel in the rough don94403's Avatar
    Join Date
    Mar 2008
    Location
    San Mateo, CA, USA
    Posts
    313
    Blog Entries
    8
    Real Name
    Don Ravey
    Rep Power
    6

    Not really, since Access is just a file-server, not a true client-server like SQL Server. In other words, the database manipulation is done in the Access client. The database back-end is effectively just the data storage medium.
    question = 2B || !2B

  3. #3
    Wolfmaster Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy is a splendid one to behold Wolffy's Avatar
    Join Date
    Mar 2008
    Location
    Peoria, IL
    Posts
    2,386
    Blog Entries
    5
    Real Name
    Wolff
    Rep Power
    15

    OK, so that would explain why I see some really interesting programs.

    What about Transactions? Does Access support those?
    Wolffy
    .-- ----- ..-. ..-. -.--
    Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Void where prohibited by law. Not valid in California. Your mileage may vary.

  4. #4
    Moderator don94403 is a jewel in the rough don94403 is a jewel in the rough don94403 is a jewel in the rough don94403's Avatar
    Join Date
    Mar 2008
    Location
    San Mateo, CA, USA
    Posts
    313
    Blog Entries
    8
    Real Name
    Don Ravey
    Rep Power
    6

    Access has some "transaction" features in VBA, where you can start and end transactions, commit or roll back, but they are not inherent in the Jet database engine, itself. There's a good discussion of this and similar issues at Microsoft Access - Wikipedia, the free encyclopedia
    question = 2B || !2B

+ Reply to Thread

Similar Threads

  1. BEGIN END useage Stored Procedures
    By richyrich in forum MySQL
    Replies: 3
    Last Post: November 30th, 2009, 10:56 AM
  2. help on stored procedures?
    By Centurion in forum Microsoft SQL Server
    Replies: 10
    Last Post: June 17th, 2009, 10:40 AM
  3. Executing Stored Procedures in Access VBA
    By TedMosby in forum Microsoft Access
    Replies: 20
    Last Post: May 15th, 2009, 12:49 PM
  4. Stored Procedures on MySQL
    By richyrich in forum MySQL
    Replies: 7
    Last Post: June 9th, 2008, 12:15 PM
  5. Permissions on Tables, Stored Procedures, etc.
    By theChris in forum Microsoft SQL Server
    Replies: 2
    Last Post: March 24th, 2008, 12:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO