Question : Viewing print output from a Stored Procedure in SQL Server Management Studio

So, I've got Microsoft SQL Server Management Studio 2008.

In the "old" days (earlier version, probably Visual Studio 2005), I had PRINT statements in my stored procedure and I could execute the SP and see all the print statements in an output window.

Now, when I execute a SP, I don't see these print statements, even in the Messages window.

Any suggestions?

Thanks,

Steve

Answer : Viewing print output from a Stored Procedure in SQL Server Management Studio

if any of the values for example '@ITEMTYPEIDENTIFIER '  is null , then the string catenation will result in null,

PRINT @ITEMID + ' | ' + ISNULL(  cast( @ITEMTYPEIDENTIFIER as varchar ) , '' )
Random Solutions  
 
programming4us programming4us