creating a text file from sql query

I need to build a sql query whose output is in a text file and be able to format the output by character positions
ie.... characters 0 - 9 = street name 10 - 16 equal street number etc..

I also need this query to be submitted by a user that will select the information by two given dates.

can someone point me to a good article on how to do this.
I think the three basic components are.
1) output of sql query to a txt file
2)output of sql query to define the bits of information in a character format...
3) user be able to easily define dates associated with the query
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michael HughettICT Field Systems AnalystCommented:
A year ago I used this app.  its really fast and Awesome.  You can do a test run with it for free to see if it will work for you.  Then buy it to be able to export everything.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott PletcherSenior DBACommented:
The standard SQL Server answer would be bcp, likely with a format file.  Format files are a royal pita to create, however.
Vitor MontalvãoMSSQL Senior EngineerCommented:
Like Scott said, bcp should be the answer. Here's the Microsoft's article about it.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.