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
Move database in exchange 2007
Simple Query Hangs
Sharepoint 2007 Date/Time Setting on bottom of Pages is incorrect
Userform modeless - modal
Help in Defining query in Access
ISA 2006 serices failed to start in timley fashion, routing and remote access the same
SQL Server Service manager saying 'Not Connected \\'
Need to create an Excel Sheet for DATA INPUT that then creates a DATABASE..or table..?
CSocket send and receive
How do I keep a running sum on a form in Access 2003?