• SQL within a procedure (2003 sp2)

    Author
    Topic
    #449380

    Is there any benefit to using a SQL statement in a procedure over just running a query, or is it just a matter of preference?

    Viewing 0 reply threads
    Author
    Replies
    • #1101652

      When Access stores queries, it optimises them using something called Rushmore optimisation. Basically, it works out the most efficient way to process the query and stores that ‘plan’. If you create a query (SQL statement) in VBA then there is no optimisation associated with it. The difference will only be noticeable when large numbers of records being processed.

    Viewing 0 reply threads
    Reply To: SQL within a procedure (2003 sp2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: