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
How to get zip codes to convert properly from Excel to Access
Capture arrow keystrokes in a TForm
Is there a recycling bin in Windows 7?
Outlook 2007 connecting to Exchange 2010. Cannot connect to email folders.
SQL Count Query In a Main Query
Basic steps for a Zip code search ASP.NET VB, MS SQL 2008
How to create a non-scrolling section (menu) of a web page
Pass Web Page as Parameter to Class in App_Code Folder
video card driver
Problem with "like" keyword, when database is in chinese