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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Output Query Analyzer

Status
Not open for further replies.

brutus6294

Technical User
Aug 16, 2007
41
US
This is a very stupid question, but I have about 10 Queries in query analyzer I would like to capture the output to. Ideally I'd like to capture the query and the output in one readable file, but will settle for capturing the results (including the column headers). Is there a good way of doing this? File formats I've tried have been a little rough...
 
Ctrl + A
Ctrl + C
Ctrl + V

???

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
 
It will if you are returning values as text

In QA:

Tools > Options > Results Tab > Default Results Target ---> "Results to Text"

-kaht

Lisa, if you don't like your job you don't strike. You just go in every day and do it really half-assed. That's the American way. - Homer Simpson
 
There are other approaches which are better suited to what you want to do, especially if this is a recurring requirement.

Look up "Copying Data From a Query to a Data File" in BOL.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Pity the insomniac dyslexic agnostic. He stays up all night, wondering if there really is a dog.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top