Solved

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

Posted on 2014-09-29
4
304 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 50

Accepted Solution

by:
Vitor Montalvão earned 200 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 34

Assisted Solution

by:ste5an
ste5an earned 100 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 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

696 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