PRINTing problem
Hi
I write following code in SQL server 2005
DECLARE @ttvarchar(20)
DECLARE @uuvarchar(20)
SET @uu='variable'
PRINT'This is printed'
PRINT'This is not printed'+ @tt+'This is not printed'
PRINT'This is printed '+ @uu+' This is printed '
OUTPUT:
This is printed
This is printed variable This is printed
Why the Second print command don’t print
(I know @tt variable is not initialized, if I initialized @tt variable then every thing is fine)
WHY?
Regards,
Thanks.
Gurpreet S. Gill

