|
Kristen
Test
United Kingdom
22191 Posts |
Posted - 02/06/2007 : 11:24:03
|
"Is it possible for a procedure to have an optional parameter"
Yes
"so that the procedure runs different code either the parameter is defined or not"
Bit more difficult. You can set an optional parameter to a given (i.e. default) value if it is not provided. If you set the default value to be something that your application will NEVER pass then you can detect that, programmatically, in the logic of your Procedure and run the appropriate conditional code.
Kristen |
 |
|