DTS runtime error - can't create object: 'Excel Application'

Posted on 2003-03-21
Medium Priority
Last Modified: 2007-12-19
I've a DTS package that reads data from an Excel spreadsheet before loading into SQL Server
As the spreadsheet data is a series of named cells I use an ActiveX Script Task to load some
global variables.  This involves creating an Excel.Application object.  No problem and running the package from my PC, it works perfectly.

When I fire the package off from a stored procedure (will eventually be a scheduled SQL Agent job), it fails with:

   DTSRun OnError:  DTSStep_DTSActiveScriptTask_1, Error = -2147220482 (800403FE)
   Error string:  Error Code: 0
   Error Source= Microsoft VBScript runtime error
   Error Description: ActiveX component can't create object: 'Excel.Application'

Do I need Excel or some ADO loading on the database server?  If so, can you give me a pointer as to how I load the ADO?


Question by:sjrh
LVL 75

Accepted Solution

Anthony Perkins earned 100 total points
ID: 8182542
>>When I fire the package off from a stored procedure (will eventually be a scheduled SQL Agent job), it fails with:<<

Sure, it is running on the Server and I suspect that you do not (and should not) have Excel installed on the server.

LVL 34

Assisted Solution

arbert earned 100 total points
ID: 8182718
Why don't you just use the DTS Excel driver to connect to the workbook?


Expert Comment

ID: 9275643
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 75

Expert Comment

by:Anthony Perkins
ID: 9305766
I recommend splitting the points between all contributors.

LVL 12

Expert Comment

ID: 11183604
No comment has been added to this question in more than 264 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup topic area:
   Accept: acperkins http:#8182542, arbert http:#8182718

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question