PRINT 'Today is ' + CONVERT(char(30), GETDATE()) : Print « Transact SQL « SQL Server / T-SQL Tutorial






7> PRINT 'Today is ' + CONVERT(char(30), GETDATE())
8> GO
Today is Aug 17 2008  1:19PM
1>
2>
3>








20.6.Print
20.6.1.PRINT command
20.6.2.Printing with variables.
20.6.3.Print debug string out of a code block
20.6.4.PRINT 'Today is ' + CONVERT(char(30), GETDATE())
20.6.5.PRINT string_expression