Home All Groups Group Topic Archive Search About

modifying output from osql command line



Author
15 Mar 2007 9:08 PM
FS
when running a query in query analyzer, you can set the query to result in
grid, which i preferably like over result in text. when running it through
osql, i'm trying to find a way to do the same. anyone know how? I tried using
the -u but the output doesn't change for me. any help would be greatly
appreciated.
thanks!
FS

Author
16 Mar 2007 12:56 AM
Hari Prasad
Hello,

You cant do grid formatted output using OSQL. What you can do is write the
output to a CSV file using BCP Queryout and open in excel.

Thanks
Hari

Show quoteHide quote
"FS" <F*@discussions.microsoft.com> wrote in message
news:02D5BA8D-E224-4DA0-A5D7-5129C64300DB@microsoft.com...
> when running a query in query analyzer, you can set the query to result in
> grid, which i preferably like over result in text. when running it through
> osql, i'm trying to find a way to do the same. anyone know how? I tried
> using
> the -u but the output doesn't change for me. any help would be greatly
> appreciated.
> thanks!
> FS

Bookmark and Share