copying the results to the file

Post Reply
chavalis
Posts: 19
Joined: Thu Dec 27, 2001 12:47 am

copying the results to the file

Post by chavalis »

Hi
How to copy the results of query to a file?
For example

Say there is a query like this
select * from city;
The results of this query are to be seen in the file.

Regards
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

copying the results to the file

Post by John »

There are many ways you can do that, depending on what format you want. The simplest is to use tsql, and redirect the output:

tsql "select * from city;" > filename

There are a number of formats that tsql can produce.

You could also create a vortex script to format the
results any way you want, and either redirect the output, or use <WRITE> in Vortex.
John Turnbull
Thunderstone Software
Post Reply