Solved

I have SQL Server 2005 Management Studio Express and need to export a table to CSV.  How can I Do this?

Posted on 2008-10-09
7
1,100 Views
Last Modified: 2012-05-05
I have SQL Server 2005 Management Studio Express installed on my machine.  I need to export a table in our DB to CSV format.  How can I do this?
0
Comment
Question by:dkcoop03
[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
  • 5
  • 2
7 Comments
 
LVL 5

Expert Comment

by:Cvijo123
ID: 22681084
Position yourself at your database in Managment studio then right click on database name then Tasks -> Export data

after that should be simple just follow wizard and u are done.
0
 

Author Comment

by:dkcoop03
ID: 22681353
Management Studio Express does not have the Export data option on the Tasks menu.  I was wondering if there was another way to do it.
0
 
LVL 5

Expert Comment

by:Cvijo123
ID: 22681614
do you mybe have bcp.exe file ?
(located whre u installed your SQL Server .. usually in
C:\Program Files\Microsoft SQL Server\90\Tools\BinnC:\Program Files\Microsoft SQL Server\90\Tools\Binn )

0
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 

Author Comment

by:dkcoop03
ID: 22681633
I do have the bcp.exe file but the database where the table resides is on a different server.  How, using BCP, do I specify a server?  I use Windows authentication to connect to the DB in Mgmt Studio Express, but I haven't found any syntax that tells me how to specify a remote server in bcp.
0
 
LVL 5

Expert Comment

by:Cvijo123
ID: 22681683
should be same way u do it in management studio (ip or name)
BCP master..sysobjects out c:\sysobjects.txt -c -t; -T S<servername>

Open in new window

0
 
LVL 5

Expert Comment

by:Cvijo123
ID: 22681805

btw. one time i found this article to export data for excel file.

From excel u can do anything

http://weblogs.sqlteam.com/mladenp/archive/2006/07/25/10771.aspx
0
 
LVL 5

Accepted Solution

by:
Cvijo123 earned 500 total points
ID: 22681895
or look at this solution .. same using BCP but inside SP

http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_22613323.html
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

737 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