![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Each time I try to call another pkg the process fails. I am using the following logic to call the next pkg. ' ============= Call another DTS pkg ============== const DTSSQLStgFlag_UseTrustedConnection = 256 ' == Call the pkg which will read each file and process it. Set oPkg = CreateObject( "DTS.Package") oPkg.LoadFromSQLServer "PII350","","",DTSSQLStgFlag_UseTrustedConnection, "","","","IN_UPDATE_DAILYD ATA_INPUT_FILES_tblRawDataTempHold" Everything works fine until I add the line: oPkg.LoadFromSQLServer "PII350","","",DTSSQLStgFlag_UseTrustedConnection, "","","","IN_UPDATE_DAILYD ATA_INPUT_FILES_tblRawDataTempHold" Then the ActiveX script fails. What I am doing wrong? I've looked at the LoadFromSQLServer line over and over and I cannot see any syntax errors. Any ideas on how to troubleshoot this? |
#3
| |||
| |||
|
|
Change it to oPkg.LoadFromSQLServer "PII350",,,DTSSQLStgFlag_UseTrustedConnection,,,," IN_UPDATE_DAILYDATA_INPUT_ FILES_tblRawDataTempHold" -- ---------------------------- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "Donald Pickering" <donpick1 (AT) hotmail (DOT) com> wrote in message news:vu2d9hbr28nr0f (AT) corp (DOT) supernews.com... Each time I try to call another pkg the process fails. I am using the following logic to call the next pkg. ' ============= Call another DTS pkg ============== const DTSSQLStgFlag_UseTrustedConnection = 256 ' == Call the pkg which will read each file and process it. Set oPkg = CreateObject( "DTS.Package") oPkg.LoadFromSQLServer "PII350","","",DTSSQLStgFlag_UseTrustedConnection, "","","","IN_UPDATE_DAILYD ATA_INPUT_FILES_tblRawDataTempHold" Everything works fine until I add the line: oPkg.LoadFromSQLServer "PII350","","",DTSSQLStgFlag_UseTrustedConnection, "","","","IN_UPDATE_DAILYD ATA_INPUT_FILES_tblRawDataTempHold" Then the ActiveX script fails. What I am doing wrong? I've looked at the LoadFromSQLServer line over and over and I cannot see any syntax errors. Any ideas on how to troubleshoot this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |