Solved

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

Posted on 2014-09-29
4
286 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
4 Comments
 
LVL 46

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 33

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
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…

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now