Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored procedure parameter
Message
From
03/08/1999 16:46:15
 
 
To
31/07/1999 22:37:37
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00248636
Message ID:
00249429
Views:
18
Hey folks, I have found an answer to my question. If a parameter is null, just don't pass it ! All you have to do, is to put a default value in the parameter of your stored procedure. Before calling you procedure and putting the variable value in the parameter collection, just check the value and if it's wrong, then ton put any argument in your parameter !!!

Ex:
sp_Example
@ExampleID int, @Name varchar(25), @LastName varchar(25) = NULL
as
Select...

Eric Trembaly
Previous
Reply
Map
View

Click here to load this message in the networking platform