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

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Exporting SQL data to Excel (multiple worksheets)

Author  Topic 

SQLvoodoo
Starting Member

4 Posts

Posted - 2007-03-30 : 09:15:13
Hi guys,

Is there a way to export SQL Server data to Excel, but into multiple worksheets in the same workbook, instead of one simple worksheet?

Thanks

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-03-30 : 13:18:51
Directly from SQL I dont think so. But you could do it from an application lie VB.NET/C#..etc. May be the new version of IS has some features ..I havent worked on it yet.

************************
Life is short. Enjoy it.
************************
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-03-30 : 14:12:20
COM Objects? Never played with them though...

Go buy this book

http://www.amazon.com/Gurus-Server-Stored-Procedures-CD-ROM/dp/0201700468/ref=pd_bbs_sr_5/102-4740627-9648144?ie=UTF8&s=books&qid=1175278294&sr=8-5

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

SQLvoodoo
Starting Member

4 Posts

Posted - 2007-03-30 : 17:03:33
Thanks guys for the replies, I'll look into that book for sure
Go to Top of Page

mwjdavidson
Aged Yak Warrior

735 Posts

Posted - 2007-04-02 : 08:40:57
If you're using DTS (as I assume you are given where this is posted!), you can use multiple dataflow tasks to multiple Excel connections (one per sheet). The JET provider treats worksheets essesntially as tables.

Mark
Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-04-02 : 09:03:36
see http://www.simple-talk.com/sql/t-sql-programming/sql-server-excel-workbench/


KH

Go to Top of Page
   

- Advertisement -