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
Can I change the default contacts folder in "My Contacts?"
My db1 table has a link to db2. Howto use a relative path?
Published Access Database to Sharepoint, now what?
vb.net sender name
Add a file extension
Is it possible to enlarge old DOS applications running on Windows XP for easier viewing?
security update 973904 MS09-073 caused problem
query on unbound text box producing strange characters and not numbers
Delete a record in the BeforeUpdate
How to make a simple search form