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 |
|
lourem
Starting Member
1 Post |
Posted - 2003-09-01 : 09:49:37
|
| Hi thereI am trying to do process a dts package that has cube processing task in it. However when I try to use the Package2.LoadFromSqlServer method from the VB script, I got the following error:*****The execution of the following DTS Package failed: Error Source: Analysis Services Processing TaskError Description:Invalid processing optionError code: 8004021D\Error Help File:Error Help Context ID:1000440****All the other packages(non cube processing ) have run successfully.Is there any tricky with cube builder ??This is the VB script I'm using.***Function Main()Main = DTSTaskExecResult_SuccessDim oPkg, oStepDim sServer, sUID, sPWD, iSecurity , sPkgPWD, sPkgName, sErrMsg,vResultCodeif DTSGlobalVariables("gTriggerFound").Value = "Yes" thenRunPackage "ESC_LOGISTICS_FACT_ORD_DAILY"msgbox "both triggers found"else' msgbox "NOT Run package"DTSGlobalVariables("gTriggerFound").Value = "No"end if ' msgbox DTSGlobalVariables("gTriggerFound").ValueMain = DTSTaskExecResult_SuccessEnd FunctionFunction RunPackage(vPkgName)Set oPkg = CreateObject("DTS.Package")oPKG.LoadFromSQLServer "cpcusskreportdv", , , DTSSQLStgFlag_UseTrustedConnection, , , ,vPkgNameoPKG.executeoPKG.UnInitializeSet oPKG = NothingEnd FunctionAny help would be very appreciated.ThanksLou |
|
|
|
|
|
|
|