that sorta helped, i still get this line: (1 rows affected)
Main Topics
Browse All TopicsI found an answer on here that sorta does what i want, but i need to clean up the file and change the format. Just wondering if anyone has some insight.
The issue is that i get this in the results:
, , ,
----,---------,----------,
0149,BW0284303,11/04/2009,
(1 rows affected)
I only want this line: 0149,BW0284303,11/04/2009,
Also the format of the csv file is unicode and i need it in ansi.
Anyone have any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Sorry i did not get back sooner. I have been working on a phone conversion project that is taking up all my time.
That fixed the 1 rows affected.
I can give instructions on how to save in a useful format to staff, so i am not going to worry about the format issue for now. I have a new problem though. For some reason, now when the query is run and a file is generated, there are 10 or so lines between each result. Its rather baffling because when i run the stored procedure directly, the blank lines are not there.
Any thoughts?
One possibility is that your attachments are suffering from lines wrapping. Default value of @query_result_width is 256. If your page width is say 80 then you'll be getting additional lines.
Try specifying a value for this parameter and see what impact it has.
also check @query_result_no_Padding as this may be a better alternative to @query_result_width
wow.. excellent! That fixed the spaces and extra lines. I set the width to 150 for safety with no issues in the results. It definitely shrunk the file down though.
I was even able to get both sets of results into one file cleanly...
Now if i could only get it to change into ascii :(
This will atleast get the reports auto sent via mail and i can give instructions on the file format to the end users.
Thanks alot!
Business Accounts
Answer for Membership
by: pettmansPosted on 2009-11-04 at 18:48:54ID: 25746336
Remove headers: @query_result_header = 0
Sorry I don't no how to force ansi for the attachment.