• Interesting too is that an empty string does not work for decimal values:

    SELECT 1.1+''

    But it again does work for dates:

    SELECT CAST('' as datetime)

    Ah the wonders of SQL -- "wonder why it does that?!"

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.