?
Solved

Extract Data from a SQL Database and save it to a csv file

Posted on 2014-09-29
4
Medium Priority
?
321 Views
Last Modified: 2014-10-03
I need to be able to extract data from s SQL database/ *.sql file and same it in a csv/excel format
0
Comment
Question by:Jason Laskey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 51

Accepted Solution

by:
Vitor Montalvão earned 600 total points
ID: 40349934
Will try to use some guess powers and says that what you need is exporting a database table to a .csv file.
If I guessed then in MSSQL Management Studio, right-click on the database, go to tasks and Export data... and follow the wizard (the source will be you SQL Server instance and database and the target your .csv file).
0
 
LVL 35

Assisted Solution

by:ste5an
ste5an earned 300 total points
ID: 40350013
Also a guess: when you mean with *.sql to generate a SQL batch containing your data as INSERT statements, then you should take a look at SSMS Toolpack.
0
 
LVL 21

Assisted Solution

by:Tapan Pattanaik
Tapan Pattanaik earned 600 total points
ID: 40350092
Hi Jason Laskey,

You can do this by using the Import/Export Wizard. (Right Click database -> Tasks -> Import/Export Wizard)

OR

For greater control you can use SSIS.

Regards,
Tapan Pattaniak
0
 

Author Closing Comment

by:Jason Laskey
ID: 40358887
Seems this worked thanks Guys for all the help!
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
In this article, we’ll look at how to deploy ProxySQL.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question