Solved

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

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

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 32

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

757 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

21 Experts available now in Live!

Get 1:1 Help Now