![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |