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
System Process 95-100%
how to send image as a base64 XML item ?
Syntax Error
Everytime the computer boots up, i'm prompted with a "restart required now"
refreshing tree view
SQL 2008 express setup question
Load into SQL Server From FoxPro database through SSIS
How to prevent duplicate records from being entered in Db.
How to get an auto incremented value in the primary key column in ms-access?
Tools send mail to old Exchange server is there any way to forward these emails to new server.