how export MSSQL data from a query?

Hi,

I'm wondering how to export to a simple sql file (like MySQL export) some specific data from my MSSQL 2008 database. I've made a query and I'm just trying to find out a way to export the data from this query. I tried the INTO OUTFILE 'c:\extract.sql' at the end of my query but it doesn't seems to like that...

it's quite urgent, does anyone has an idea?
Kind Regards,
Dave
David_PazosAsked:
Who is Participating?

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

x
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.

Daniel_PLDB Expert/ArchitectCommented:
0

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
rajvjaCommented:
Hi
You can use sql server export data wizard.
You can export to excel, csv file, text files and many other destinations.
0
kamindaCommented:
Simplest way of doing this is after the query execution completes in the Management Studio, Select all rows (this can be easily done by clicking the top most tab between rows and columns) and right click then select save result as. You can save it to a CSV file simple easy.
0
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 2008

From novice to tech pro — start learning today.