Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In Over My Head With A Scalar-Valued Function
Message
 
To
23/12/2009 21:15:47
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01440468
Message ID:
01440537
Views:
55
>That worked! Thanks. I hadn't thought of the value possibly being all zeros. What's the best way to trap for that?

Do you really need to trap for that? If it is invalid, there will be no matching records and your isnull call will do the same as the if will do, right?
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform