You are here: DTS Automation - Huge Problem « MsSQL Server « IT news, forums, messages
DTS Automation - Huge Problem

Posted by maxvalery on 09/14/06 14:53

Hi,

I have a DTS package for SQL Server 2000. Its entire purpose is to

1) run a parametrized stored procedure
2) run a query
3) EXPORT parametrized stored procedure into an Excel file NAMED
according to the query from #2
4) REPEAT until reached last row of the query, then run last row and
finish DTS package.

I've implemented everything EXCEPT for #3.

The problem I'm having is after setting the Excel export connection's
destination path dynamically with

DTSGlobalVariables.Parent.Connections("Excel").DataSource = "C:\" &
DTSGlobalVariables("subgroupPATH").Value & ".xls",

the DTS errors out: "The Miscrosot Jet database engine could not find
the object 'TempTable'. Make sure the object exists and that you spell
its name and path correctly'.

When I go back, double click the silver transformation arrow between
SQL Server and Excel, and create the destination table manually and
specify name and transformations, the DTS runs ONCE, but produces the
above error on the second loop.

Please reply if you know of a way to solve my issue or set the temp
destination table programmatically!

Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация