Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugging showing wrong LEN(@i_name) > 0 when @i_name = ''
Message
From
23/01/2006 23:44:12
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Debugging showing wrong LEN(@i_name) > 0 when @i_name = ''
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01089633
Message ID:
01089633
Views:
63
Hi,

Below is a simple SP created to stimulate my issue.
If I run the SP, it is working correctly.

However, when I debug it in QA, it will print 'Length >0' when I pass '' as input parameters. Why is QA having such a issue which confused me.

Anyone got any ideal why QA is having this issue. I am using SQL2k
with SP4




create procedure dbo.a_123
(
@i_name varchar(50)
)
as begin

if(len(@i_name)>0)
print 'Length > 0'
else
print 'Length = 0'

end
GO
Best Regards
Virusim
Next
Reply
Map
View

Click here to load this message in the networking platform