Re: Function to check NULL and Empty String

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Jeff Dillon (jeff_at_removeemergencyreporting.com)
Date: 10/20/04


Date: Wed, 20 Oct 2004 09:11:27 -0700

Perfect! I thought I was missing something simple.

thx

Jeff
"David Portas" <REMOVE_BEFORE_REPLYING_dportas@acm.org> wrote in message
news:9C66DE55-C61D-4D7C-8F89-238F636A4D2B@microsoft.com...
> IS NOT NULL isn't needed in the code you posted anyway (NULLs will be
> excluded by <> '')
>
> IF @infodate>''
> (not NULL and not empty)
>
> IF NULLIF(@infodate,'') IS NULL
> (NULL or empty -- but I would probably prefer to achieve this just by
> swapping the IF and ELSE parts in the above)
>
> --
> David Portas
> SQL Server MVP
> --
>



Relevant Pages

  • Re: 3vl 2vl and NULL
    ... I'm not sure exactly what Codd and Date have to say on the ... Systematic treatment of missing data ... All NULLs are not created equal. ... Draw whatever inferences you like. ...
    (comp.databases.theory)
  • Re: Problem installing PHP
    ... stupid that im missing... ... > Jeff B wrote: ... >> My plan is to code the website on my pc and then transport to host on ... I installed the EasyPHP package, which bundles Apache, PHP, ...
    (comp.lang.php)
  • Re: pending.xml missing
    ... Thx a lot for your information. ... I won't look for a missing pending file anymore. ... during the installation time and the subsequent reboot. ...
    (microsoft.public.windows.vista.general)
  • Re: Missing text with pdf Conversion
    ... MVP Microsoft [Publisher] ... most of the text in that column is "Normal" style including chunks ... Any chance you missing text all uses the same font that happens to be ... Thx a mint for replying to this post. ...
    (microsoft.public.word.docmanagement)
  • Re: vpn cant access shares
    ... System error 5 has occured. ... OEx allows ...
    (microsoft.public.windows.server.networking)