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
daily average of the last 200 data
vb.net color palette
Can't locate 13 gb on my drive and yes I see the swap file.
Can we enable the guest account on a machine
Nested countif problem
XCopy command leaves folder hidden
Need help with SQL 2008 running on a 2008 failover cluster
sharepoint create site column programmatically
Changing properties of a Read Only field
Access 2007 VBA code for Make Table Query