Hi,
I have a stored procedure that accepts 3 input variables (start_dt, end_dt and password). I would like the user to enter the first 2 (start_dt and end_dt), but I would like the system to look up the third one (from a file on the local hard drive) and transparently pass it to the stored procedure.
The password is to decrypt data in the database, and so I (obviously) don't want to hard-code it in the application or the stored procedure. We also don't want to store it on the database server. Additionally, we don't give the password to users (since they'll put it on a post-it note on their monitor). Basically, we bury a text file in the depths of their hard-drive (which they don't know about), and pull the password from there when we need it).
So, if I put the stored procedure as the report record source, then the user gets pop-up boxes for all three variables, but if I execute the stored procedure using the "report.activate" VB code, it doesn't see any of my fields (this is where you declare, bind, append, and set variables and execute procedure).
Any suggestions as to how I can accomplish this would be greatly appreciated!
Thanks!
Birgit
I have a stored procedure that accepts 3 input variables (start_dt, end_dt and password). I would like the user to enter the first 2 (start_dt and end_dt), but I would like the system to look up the third one (from a file on the local hard drive) and transparently pass it to the stored procedure.
The password is to decrypt data in the database, and so I (obviously) don't want to hard-code it in the application or the stored procedure. We also don't want to store it on the database server. Additionally, we don't give the password to users (since they'll put it on a post-it note on their monitor). Basically, we bury a text file in the depths of their hard-drive (which they don't know about), and pull the password from there when we need it).
So, if I put the stored procedure as the report record source, then the user gets pop-up boxes for all three variables, but if I execute the stored procedure using the "report.activate" VB code, it doesn't see any of my fields (this is where you declare, bind, append, and set variables and execute procedure).
Any suggestions as to how I can accomplish this would be greatly appreciated!
Thanks!
Birgit