I am using Stored Procedures for all INSERT / UPDATE / TRUNCATE operations. The Access / VBA side of those use ADO Command / Parameters objects. Code is as shown here:
http://www.access-programmers.co.uk/forums/showthread.php?t=216860#post1104120
I have seen posts suggesting that it is possible to place a SQL SELECT into a Stored Procedure, pass the search criteria into the SP via ADO Parameters objects.
It is not clear to me how the selected columns would map to ADO.Parameters objects, and how to deal with the result set having more than one record... how to step through the result set one record at a time.
I have been banging into the upper limit of string concatenation building pass-through SQL SELECT queries. So thinking to research transitioning SQL SELECT queries into Stored Procedures before I hit the wall of too long of a SQL SELECT query.
http://www.access-programmers.co.uk/forums/showthread.php?t=216860#post1104120
I have seen posts suggesting that it is possible to place a SQL SELECT into a Stored Procedure, pass the search criteria into the SP via ADO Parameters objects.
It is not clear to me how the selected columns would map to ADO.Parameters objects, and how to deal with the result set having more than one record... how to step through the result set one record at a time.
I have been banging into the upper limit of string concatenation building pass-through SQL SELECT queries. So thinking to research transitioning SQL SELECT queries into Stored Procedures before I hit the wall of too long of a SQL SELECT query.