Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
thanksfor help
Posting Yak Master
106 Posts |
Posted - 2007-07-27 : 18:57:48
|
Hi,The following ActiveX script work fine in the DTS package. OPTION EXPLICITFunction Main() 'References to Excel dim xl_app dim objXLSWorkbook SET xl_app =CREATEOBJECT("Excel.Application") 'xl_app.Visible = True Set objXLSWorkbook =xl_app.Workbooks.Open("D:\FileName07.xls") 'Run the macro xl_app.Run DTSGlobalVariables("Macro_name").Value objXLSWorkbook.Save objXLSWorkbook.Close xl_app.Quit set xl_app = Nothing Main = DTSTaskExecResult_SuccessEnd FunctionBut when I schedule the package, it gives error below.The user login have system admin, server role.Step Error Source: Microsoft Data Transformation Services (DTS) PackageStep Error Description:Error Code: 0Error Source= Microsoft VBScript runtime errorError Description: Permission denied: 'CREATEOBJECT'Error on Line 11Step Error code: 800403FEStep Error Help File:sqldts80.hlpStep Error Help Context ID:4500Any help is appreciated. |
|
|
|
|