Posts
1150
Comments
891
Trackbacks
1
T-SQL Avoid Divide by Zero errors

If you know you are going to have zeros appear in the denominator of formulas in a stored procedure or function, use the nullif function to null them out, e.g. nullif(@MyValue, 0).

posted on Tuesday, April 26, 2005 10:40 AM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 3 and 3 and type the answer here: