Marc (mnoon (AT) simtest (DOT) net) writes:
Quote:
I was wandering if I could put a print inside a select |
Have you the faintest idea of how that would look like? I haven't.
I just can't get it together. PRINT is a procedural statement, can have
that in anything else.
Why not try it?
PRINT (SELECT 123)
gives me:
Msg 1046, Level 15, State 1, Line 1
Subqueries are not allowed in this context. Only scalar expressions are
allowed.
Looks like the answer is no.
Quote:
but is it possible to put a print inside another print, |
Again, how would that look like?
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx