Microsoft
Software
Hardware
Network
Question : How to use "IsNull" with varchar datatype?
can anybody please explain what the second line of code is doing in the following statements.
I am trying to use some existing functionality, but I am not getting how to interpret this.
@GMTOffset varchar(5)
if len(ltrim(isNull(@GMTOffse
t,''))) = 0 set @GMTOffset = null
Thanks in advance!
Answer : How to use "IsNull" with varchar datatype?
Sure...it trims any spaces from the left and right of the variable and then looks at the length of the value in the variable. The ISNULL function puts an emptry string in place of a null valued variable.
Random Solutions
Outlook XP won't install MAPI services
Changing forecolor in report lables
When establishing an ADO connection to a database, is it necessary to have a file path that is free of blank spaces?
Arrays in Excel macro
search method in VBA Access
The report server is not responding. Verify that the report server is running and can be accessed from this computer.
MOSS 2007 using EXPRESS version of MS SQL instead of MS SQL 2005 STANDARD
MS Access 207: How to import reports, forms, and queries from other files?
Shading alternating rows in reports
SQL 2005 WMI Problem