Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugging showing wrong LEN(@i_name) > 0 when @i_name = ''
Message
De
23/01/2006 23:44:12
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Debugging showing wrong LEN(@i_name) > 0 when @i_name = ''
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01089633
Message ID:
01089633
Vues:
62
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform