Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable number of parameters to sql stored procedures
Message
 
À
22/07/2007 07:30:10
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01242588
Message ID:
01242622
Vues:
26
>Does no one see how inefficient it is to write 20 variations of the same query just to support multiple parameters?

Mike,
T-SQL is not strong typing language, it is more like VFP. If you not call the SP with all parameters the parameters is defined with the type you want but has value NULL. Of course you could set a default value for every parameter.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform