Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Script Library
 Export to excel as csv format
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

missylloyd
Starting Member

South Africa
2 Posts

Posted - 03/19/2007 :  06:34:23  Show Profile  Click to see missylloyd's MSN Messenger address  Reply with Quote
Hi

I'm trying to export data to an excel spreadsheet in a csv format. Is this possible in SQL?

Thanks,

Missy.

SwePeso
Patron Saint of Lost Yaks

Sweden
30421 Posts

Posted - 03/19/2007 :  06:40:01  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Yes. With external tool BCP it is.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

missylloyd
Starting Member

South Africa
2 Posts

Posted - 03/19/2007 :  06:43:57  Show Profile  Click to see missylloyd's MSN Messenger address  Reply with Quote
Damn, thats a bummer.
Thanks Peso.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

Sweden
30421 Posts

Posted - 03/19/2007 :  06:47:53  Show Profile  Visit SwePeso's Homepage  Reply with Quote
BCP is a part of SQL Server.
I meant you have to do something like this

bcp AdventureWorks.Sales.Currency out Currency.dat -c -U<login_id> -S<server_name\instance_name>

in a DOS window.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

Sweden
30421 Posts

Posted - 03/19/2007 :  07:10:09  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Also, this is a forum for working queries only.
In the future, please use another forum better suited for your question.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000