dbTalk Databases Forums  

Need Access To Data Pump Source Dropdown

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


Discuss Need Access To Data Pump Source Dropdown in the microsoft.public.sqlserver.dts forum.



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

Default Need Access To Data Pump Source Dropdown - 12-01-2004 , 11:05 AM






I am importing data from Excel files with multiple worksheets.

When you use the DTS dialog for the Data Pump object, the Source tab has a
dropdown box with all the available worksheets in a given Excel file.

I want to access this list of worksheet names without having to resort to
Office automation of Excel. How can I access this list programatically?

Thru the Disconnected Edit I can see a SourceObjectName property but this
only references the currently selected worksheet. I need to iterate through
each worksheet in the given file, so I need access to this list.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Need Access To Data Pump Source Dropdown - 12-01-2004 , 01:10 PM






AFAIK DTS simply goes through the driver and makes the request. It must
request this from something exposed by the driver.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Jamie Carper" <JamieCarper (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am importing data from Excel files with multiple worksheets.

When you use the DTS dialog for the Data Pump object, the Source tab has a
dropdown box with all the available worksheets in a given Excel file.

I want to access this list of worksheet names without having to resort to
Office automation of Excel. How can I access this list programatically?

Thru the Disconnected Edit I can see a SourceObjectName property but this
only references the currently selected worksheet. I need to iterate
through
each worksheet in the given file, so I need access to this list.



Reply With Quote
  #3  
Old   
Jamie Carper
 
Posts: n/a

Default Re: Need Access To Data Pump Source Dropdown - 12-01-2004 , 01:41 PM



I suspected as much. Is there a way to tap into this exposed service?

In my case that would be the Microsoft Jet OLEDB 4.0.

"Allan Mitchell" wrote:

Quote:
AFAIK DTS simply goes through the driver and makes the request. It must
request this from something exposed by the driver.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Jamie Carper" <JamieCarper (AT) discussions (DOT) microsoft.com> wrote in message
news:35EA8EEB-46AB-4ED1-ACB6-F079EFEBC4F5 (AT) microsoft (DOT) com...
I am importing data from Excel files with multiple worksheets.

When you use the DTS dialog for the Data Pump object, the Source tab has a
dropdown box with all the available worksheets in a given Excel file.

I want to access this list of worksheet names without having to resort to
Office automation of Excel. How can I access this list programatically?

Thru the Disconnected Edit I can see a SourceObjectName property but this
only references the currently selected worksheet. I need to iterate
through
each worksheet in the given file, so I need access to this list.




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.