About 1,230,000 results
Open links in new tab
  1. How do I check if a Sql server string is null or empty

    Use the LEN function to check for null or empty values. You can just use LEN(@SomeVarcharParm) > 0. This will return false if the value is NULL, '', or ' '. This is …

  2. SQL is null and = null - Stack Overflow

    Mar 6, 2012 · In SQL, a comparison between a null value and any other value (including another null) using a comparison operator (eg =, !=, <, etc) will result in a null, which is considered as …

  3. sql - How to check for null/empty/whitespace values with a single …

    SQL Server: TRIM(), RTRIM(), LTRIM() How to Check Empty/Null/Whitespace :-Below are two different ways according to different Databases-The syntax for these trim functions are: Use of …

  4. sql - Not equal <> != operator on NULL - Stack Overflow

    Apr 14, 2011 · In SQL, anything you evaluate / compute with NULL results into UNKNOWN. This is why SELECT * FROM MyTable WHERE MyColumn != NULL or SELECT * FROM MyTable …

  5. Check if a column's value is null in SQL Server - Stack Overflow

    Jul 24, 2015 · Solution 1 : Use IsNULL() Function, When below query return null value IsNULL function replace null value with 0 and if condition treated as False. IF EXISTS (SELECT …

  6. How do I check if a SQL Server text column is empty?

    Aug 29, 2008 · I am using SQL Server 2005. I have a table with a text column and I have many rows in the table where the value of this column is not null, but it is empty. Trying to compare …

  7. How to check for Is not Null And Is not Empty string in SQL server ...

    Dec 28, 2011 · Check the not null condition and empty string in SQL command is use 'is null / not null' and '!='. please try this sample pattern script: SELECT * FROM [Employee] WHERE …

  8. t sql - How to check if a column is empty or null using SQL query ...

    Here is my preferred way to check for "if null or empty": SELECT * FROM UserProfile WHERE PropertydefinitionID in (40, 53) AND NULLIF(PropertyValue, '') is null Since it modifies the …

  9. sql - Null or empty check for a string variable - Stack Overflow

    Dec 12, 2013 · @rivaldid: That's the same thing as checking if the value is null. The length of a string is only null when the string is null. If the string has a zero length, the len function returns …

  10. sql - Check if a parameter is null or empty in a stored procedure ...

    Dec 15, 2014 · I have these parameters and I want to check the previous parameters are empty or null and then set them like below ALTER PROCEDURE [dbo].[GetSummary] …

Refresh