October 26, 2006 at 7:04 am
Hello,
Is there a way in SQL 2000 to suppress the -------- type undeline when you output results of a query to a text file?
Is was expecting there to be an option like 'set nocount on' that would do this, but cannot find one.
Thanks
Paul Salmon
October 26, 2006 at 9:06 am
October 27, 2006 at 1:04 am
Thanks for your help.
That works ok for ad hoc reports, but I've just tried running query through EM as a job and still get the underline. This also appears to be the case when running with osql command line.
I have ended up using VB6 to do it anyway as that fits the purpose better!
Thanks
Paul Salmon
October 27, 2006 at 1:29 am
IMHO, text output has hideous formatting and is not good for permanent reports anyway. I prefer sp_makewebtask to create HTML file in the job, but you can do it in VB if that suits you better.
October 27, 2006 at 3:55 am
The recipient of the files want comma or tab delimited format only, but thanks for the suggestion.
October 27, 2006 at 7:24 am
October 27, 2006 at 7:30 am
Or... Use OSQL with the -h-1 option. Don't forget to set the -s option to a tab... you can't do THAT from the command prompt... you will need to make a batch file to run the OSQL... which you should do anyway...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply