isnull()

does sql server mobile 2005 support the isnull function I'm getting an error when I try to use it and I don't know if it is becuase of using the isnull function or not, but when I run the same query on Sql Server 2005 it works fine.


Answer this question

isnull()

  • Lampkin

    I just ran this query:
    select (isnull(StreetName, '')) as Street from Meter

    this query runs on both Sql Server 2005 and Mobile, but on Server it displays the values as text(the StreetNames), but on Mobile it uses boolean values. How do I select the text

  • Trenton1

    to answer my own question, yes you can use isnull in sql mobile. Specifically I am trying to run this query:

    select (isnull(StreetName + ' ', '') + isnull(StreetSuffix + ' ', '')) as Street from Meter

    both StreetName and StreetSuffix are nvarchar values. This works fine on Sql Server 2005, but on Mobile it says something about errors in command and column name not valid.

  • Tyler Whitney-MSFT

    I got it working using the COALESCE function

  • oky

    ISNULL() is not supported in Microsoft SQL Server Mobile/Everywhere. Hence, please dont rely on it though it does not through any syntax error.

    Thanks,

    Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Everywhere, Microsoft Corporation



  • isnull()