Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable number of parameters to sql stored procedures
Message
 
To
22/07/2007 07:30:10
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01242588
Message ID:
01242622
Views:
25
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform