Friday, November 09, 2007

SQL Teaser: Printing Without Using PRINT

Print the @SQL variable without using PRINT

DECLARE @SQL varchar(49)
SELECT @SQL = 'Print This Now ' + CONVERT(VARCHAR(30), GETDATE())
--Your Code Here


3 comments:

Simon Worth said...

RAISERROR (@SQL,10,1);

Matija Lah said...

As Simon pointed out, this one was too easy. :)

Unknown said...

SELECT @SQL