dbTalk Databases Forums  

VBScript in SQL 2000 for a DTS Pkg

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss VBScript in SQL 2000 for a DTS Pkg in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris
 
Posts: n/a

Default VBScript in SQL 2000 for a DTS Pkg - 09-12-2006 , 09:35 AM






I need to create a vbscript in a DTS pkg that takes the results of a query
and exports the data to a spreadsheet but exports data on different sheets
with in the workbook according a group.

In short I want to group the data then export it to a different sheet with
in the same workbook.

Any help with this would be greatly appreciated.

Thanks,

-Chris


Reply With Quote
  #2  
Old   
IanO
 
Posts: n/a

Default Re: VBScript in SQL 2000 for a DTS Pkg - 09-13-2006 , 03:36 PM







I have written to different Excel worksheets using ADO. Create a named
range in each sheet. These names are global to the workbook. Connect
the workbook and the range (sorry I don't have an example handy).
Caution - even if you tell it that you are not writing a row of names,
it still skips a row before the data gets written.
Yoy may have to use CreateObject and set a reference to the ADO
library.

Hope this helps,
IanO


Reply With Quote
  #3  
Old   
Chris
 
Posts: n/a

Default Re: VBScript in SQL 2000 for a DTS Pkg - 09-13-2006 , 09:28 PM



Thanks for you help. I will give it a try

ca

"IanO" wrote:

Quote:
I have written to different Excel worksheets using ADO. Create a named
range in each sheet. These names are global to the workbook. Connect
the workbook and the range (sorry I don't have an example handy).
Caution - even if you tell it that you are not writing a row of names,
it still skips a row before the data gets written.
Yoy may have to use CreateObject and set a reference to the ADO
library.

Hope this helps,
IanO



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.