Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get rid of messages when outputing from QA

Status
Not open for further replies.

jmj

Programmer
Oct 4, 2001
122
US
I need to output a bunch of queries from Queyr Analyzer.
I'd like them to be exported without any space between each query.
I've turned off the header. But after each query there are a couple of lines with a msg like "(10 row(s) affected)".
Is there a way I can do this cleanly? I saw one solution, that worked from the Grids Result screen, but that will only let me pick one query result at a time. I'd like all of them to export on the same page.
Thanks,
J
 
SET NOCOUNT ON.

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
That takes out the count, but I still get a whole blank line between queries. Any way to get rid of that?
 
Ah... output as text?

AFAIK that blank line cannot be turned off.

If there are no headers and blank lines, how will you know where one output ends and another one begins?

If all queries return identical columns, try UNION ALL.

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top