Solved

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

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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…

732 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