dbTalk Databases Forums  

DTS Import from Excel Name Range

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


Discuss DTS Import from Excel Name Range in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jason Mancuso via SQLMonster.com
 
Posts: n/a

Default DTS Import from Excel Name Range - 06-10-2005 , 11:37 AM






I'm trying to import a name range from an excel file. I call the DTS
package via VBA and it captures the information I want perfectly. However,
this is only assuming that the workbook I'm calling the package from is the
first workbook open on my desktop. If for some reason it is not when I
call the dts package a copy of the workbook (read only) is generated and
the dts package fails.

Any idea on why this happens or how it may be fixed? This is my first time
working with DTS packages so any help will be greatly appreciated.

Thanks.

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

Default Re: DTS Import from Excel Name Range - 06-13-2005 , 12:49 AM






I believe the only way around this is to make a copy of the file. What I
believe happens is the driver tries to open the file READ/WRITE which in
this case will not work for you.


--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Jason Mancuso via SQLMonster.com" <forum (AT) nospam (DOT) SQLMonster.com> wrote in
message news:dd7ac96542ad44f0b0274e6bf86d62d2 (AT) SQLMonster (DOT) com...
Quote:
I'm trying to import a name range from an excel file. I call the DTS
package via VBA and it captures the information I want perfectly.
However,
this is only assuming that the workbook I'm calling the package from is
the
first workbook open on my desktop. If for some reason it is not when I
call the dts package a copy of the workbook (read only) is generated and
the dts package fails.

Any idea on why this happens or how it may be fixed? This is my first
time
working with DTS packages so any help will be greatly appreciated.

Thanks.



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.