select * from sysobjects. PRINT 'Just selected * from sysobjects'. If you're using SQL Query Analyzer, you'll see that there are two tabs down at the bottom, one of which is "Messages" and that's where the 'print' statements will show up. If you're concerned about the timing of seeing the print statements, you may want to try using something like. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.