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 data in excel using bcp

Author  Topic 

CK
Starting Member

3 Posts

Posted - 2011-01-22 : 01:13:38
Hello,

Is it possible to export the resultset of two queries in two different tabs of excel of the same file using bcp in sql server 2000. If yes then please let me knoe how i can do the same.

If not then please suggest some alternative way to do the same.

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-01-23 : 22:56:32
Bcp can do a csv file which Excel handles, but it can not do tabs in Excel.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-01-24 : 03:13:33
Alternate is to use OPENROWSET function
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -