SQL Stored procedures

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
Ali_Eldergill_(Guest)
Posts: 2
Joined: Tue Oct 10, 2017 12:44 pm

SQL Stored procedures

Post by Ali_Eldergill_(Guest) » Wed Mar 19, 2003 10:52 am

I need to select certain records, according to filters entered at run time, but having selected them, I then need to update the records as printed. The obvious thing seems to call a stored procedure from the report, so that I can do the update. Problem is - how do I pass the filter information through to the stored procedure - if I can^t do that I^m going to end up updating every record! Is there any other way such as using RI_REPLACE that this can be achieved?____Any help will be greatly appreciated!

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: SQL Stored procedures

Post by kfleming » Wed Mar 19, 2003 1:52 pm

If your stored procedure had a required parameter you could indeed enclose that parameter in double brackets and use RI_REPLACE to feed it a value at runtime. But I do not know enough about stored procedures to know if this would really work as you wish but the input would have to be a parameter to the stored procedure.____Kathleen__R&R Support

Post Reply