RamsLessonsLearnt

Tuesday, July 8, 2008

Its not = null It is "is null"

I'm doing this mistake time and again in T-SQL
You should not use = with null, you should always use is null
eg:
WRONG:
EndDate = null
RIGHT:
EndDate is null
Posted by Ramachandran at 11:51 AM
Labels: null, T-SQL

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Ramachandran
A Software Professional who loves to write
View my complete profile

Blog Archive

  • ►  2021 (4)
    • ►  December (1)
    • ►  October (2)
    • ►  August (1)
  • ►  2016 (2)
    • ►  July (1)
    • ►  June (1)
  • ►  2013 (4)
    • ►  April (4)
  • ►  2012 (1)
    • ►  December (1)
  • ►  2011 (3)
    • ►  July (1)
    • ►  February (2)
  • ►  2010 (8)
    • ►  November (1)
    • ►  September (1)
    • ►  June (1)
    • ►  April (4)
    • ►  February (1)
  • ►  2009 (13)
    • ►  September (5)
    • ►  July (4)
    • ►  April (2)
    • ►  February (1)
    • ►  January (1)
  • ▼  2008 (24)
    • ►  December (7)
    • ►  October (3)
    • ▼  July (3)
      • Implementing Transactions in SSIS
      • Vista Slow Copy to CD
      • Its not = null It is "is null"
    • ►  June (1)
    • ►  May (1)
    • ►  April (3)
    • ►  February (3)
    • ►  January (3)
  • ►  2007 (31)
    • ►  December (4)
    • ►  November (12)
    • ►  October (1)
    • ►  September (8)
    • ►  July (6)
Simple theme. Powered by Blogger.