Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stored procedure parameter
Message
De
03/08/1999 16:46:15
 
 
À
31/07/1999 22:37:37
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00248636
Message ID:
00249429
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform