Hello all,
I am currently working on a project in Access that runs several slight variations on a query that has it's SQL statement altered through code before it is run. Something like changing:
SELECT * FROM Table WHERE X > 1
to
SELECT * FROM Table WHERE X < 1 AND X >-2
There is a chance that I may get to run this off SQL Server and I was wondering if I could do the same thing to a stored procedure. I'm thinking I could get the performance gain from the stored procedure, but not have to write many stored procedures that do almost the same thing.
Any advice?
I am currently working on a project in Access that runs several slight variations on a query that has it's SQL statement altered through code before it is run. Something like changing:
SELECT * FROM Table WHERE X > 1
to
SELECT * FROM Table WHERE X < 1 AND X >-2
There is a chance that I may get to run this off SQL Server and I was wondering if I could do the same thing to a stored procedure. I'm thinking I could get the performance gain from the stored procedure, but not have to write many stored procedures that do almost the same thing.
Any advice?