December 10, 2008 at 1:00 pm
Result of a query run by osql, written to a flat file shows “1> 2> 3> 4> 5> 6> 7> Column_one ... " on the first line. :w00t:
How to avoid this by:
1 Show only Column name.
2 Show nothing at all.
Thanks in advance.
December 10, 2008 at 9:24 pm
Post the OSQL command, please.
--Jeff Moden
December 11, 2008 at 3:43 pm
Thank you Jeff. Here is the command line:
osql –Sserver –Uuserid -Ppassword –i inputfile –o outputfile
Do you suspect a problem in osql?
December 11, 2008 at 7:04 pm
Try adding the -n parameter to the OSQL cmd line.
--Jeff Moden
December 12, 2008 at 4:34 am
Thank you very much Jeff. "-n" resolved the problem.
Best Regards,
Sohrab 🙂
December 12, 2008 at 8:23 pm
You bet... thank you for the feedback. 🙂
--Jeff Moden
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply