Wrox Programmer Forums
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 3rd, 2007, 11:12 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DTS Error

Hi I am new to DTS and I am having a lot of trouble when I try to schedule the below report. Can someone point me in the right direction? I have posted a snippet of the code as well as the error. Please note that this runs fine when I execute it, its just when I schedule it, it doesn't run. TIA. -C
VB Script CodePublic Sub InitializeReport()

     Dim xlApplication
     Dim xlWorkBook
     Dim xlWorkSheet

     Set xlApplication = CreateObject("Excel.Application")
     Set xlWorkBook = xlApplication.WorkBooks.Add

     xlApplication.DisplayAlerts = False

     Set xlWorkSheet = xlWorkBook.Worksheets.Add
     xlWorkSheet.Activate

This is the error:Executed as user: MKHE\sql. ...SRun OnStart: DTSStep_DTSActiveScriptTask_1 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' Error on Line 24 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 Error Detail Records: Error: -2147220482 (800403FE); Provider Error: 0 (0) Error string: Error Code: 0 Error Source= Microsoft VBScript runtime error Error Description: ActiveX component can't create object: 'Excel.Application' Error on Line 24 Error source: Microsoft Data Transformation Services (DTS) Package Help file: sqldts80.hlp Help context: 4500 DTSRun OnFinish: DTSStep_DTSActiveScriptTask_1 Error: -2147220440 (80040428); Provider Erro... Process Exit Code 1. The step failed.
 
Old May 7th, 2007, 08:18 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

When you run this on your workstation does it work? It is possible when you schedule it on the server you do not have the excel application and dll's.

Jaime E. Maccou





Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS _ error 9002 rosa2008 SQL Server 2000 0 July 4th, 2008 02:14 AM
DTS Error Amit Yenurkar ASP.NET 1.0 and 1.1 Basics 0 February 23rd, 2007 02:36 AM
DTS error mtullock SQL Server DTS 1 July 28th, 2004 08:38 AM
DTS Error mtullock SQL Server 2000 0 April 22nd, 2004 05:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.