dbTalk Databases Forums  

DTS to Excel from VB

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


Discuss DTS to Excel from VB in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
anna@ccn.com.sg
 
Posts: n/a

Default DTS to Excel from VB - 06-08-2004 , 10:36 PM






I faced the following problem when i do DTS to excel from
my vb program.
"
Copy Data from Results to Results Step failed Microsoft
JET Database Engine The Microsoft Jet database engine
could not find the object 'Results'. Make sure the object
exists and that you spell its name and the path name
correctly."

Anybody know why?...

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

Default Re: DTS to Excel from VB - 06-09-2004 , 01:09 AM






Forget about the VB program for a minute. Can you execute the package
normally and it works?
DTS from where to Excel?
You have to have a Source object called Results and a destination object
(named range) called Results which according to the error is not true in
this case.


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"anna (AT) ccn (DOT) com.sg" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I faced the following problem when i do DTS to excel from
my vb program.
"
Copy Data from Results to Results Step failed Microsoft
JET Database Engine The Microsoft Jet database engine
could not find the object 'Results'. Make sure the object
exists and that you spell its name and the path name
correctly."

Anybody know why?...



Reply With Quote
  #3  
Old   
Douglas Laudenschlager [MS]
 
Posts: n/a

Default Re: DTS to Excel from VB - 06-15-2004 , 03:24 PM



Whenever I've seen this error message in my experience, I've always
discovered ultimately that it's correct -- that I have provided an incorrect
path to the spreadsheet itself, or spreadsheet name, or sheet name, or range
name. Remember that you don't get an error on first opening the connection
even if the path is invalid or the spreadsheet doesn't exist, so check
everything. Make sure you have a named range named Results, or that you use
the $ and delimiters if it's the worksheet name. Best of luck with your
troubleshooting.

-Doug

--
Douglas Laudenschlager
Microsoft SQL Server documentation team
Redmond, Washington, USA

This posting is provided "AS IS" with no warranties, and confers no rights.


"anna (AT) ccn (DOT) com.sg" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I faced the following problem when i do DTS to excel from
my vb program.
"
Copy Data from Results to Results Step failed Microsoft
JET Database Engine The Microsoft Jet database engine
could not find the object 'Results'. Make sure the object
exists and that you spell its name and the path name
correctly."

Anybody know why?...



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.