Is there any way to prevent a query from executing at run time [message #88193] |
Tue, 30 April 2002 05:53 |
Smitha
Messages: 17 Registered: June 2001
|
Junior Member |
|
|
Hi,
Is there any way to prevent a query from executing at run time.
For Eg: I have two queries Q1 and Q2. I have a user parameter P1. If P1=’N’ then query Q1 should not be executed at all .This is required because in our system when P1 =’N’ the tables in query Q1 do not exist. If it is executed then “Table/View not found “error displays.
One way is to use lexical parameters.
Is there any other easy way?
Any help is appreciated.
Thanks,
Smitha.
|
|
|
|