![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
-----Original Message----- Are you saying that some packages do not execute when scheduled then ? http://support.microsoft.com/?kbid=269074 -- 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 "Mark Phillips" <mark.phillips (AT) db (DOT) com> wrote in message news:070101c34494$8eb91a50$a001280a (AT) phx (DOT) gbl... I am using an active X script to run several DTS packages: 'Set objDTS=CreateObject("DTS.Package") 'objDTS.LoadFromSQLServer "LONRPT01", "sa","passwor d" , DTSSQLStgFlag_Default, , , , "DTS_Package_N" 'objDTS.Execute If Err <> 0 Then LogDTSError err.description ,"DTS_Package_N" Msgbox Err & ": " & Err.Description Err.clear End If Set objDTS = Nothing the problem I have is this will run some of the packages and not others, each package when it runs updates a log table as the first step, the ones that do not run do not even execute this first step. The packages will all run when executed from mmc, and all have identical properties. I have tried renaming the package, deleting it and reloading it from a saved file. The packages all reside on the same server, and access the same database. Can some one throw some light on this problem? . |
#2
| |||
| |||
|
|
-----Original Message----- Are you saying that some packages do not execute when scheduled then ? http://support.microsoft.com/?kbid=269074 -- 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 "Mark Phillips" <mark.phillips (AT) db (DOT) com> wrote in message news:070101c34494$8eb91a50$a001280a (AT) phx (DOT) gbl... I am using an active X script to run several DTS packages: 'Set objDTS=CreateObject("DTS.Package") 'objDTS.LoadFromSQLServer "LONRPT01", "sa","passwor d" , DTSSQLStgFlag_Default, , , , "DTS_Package_N" 'objDTS.Execute If Err <> 0 Then LogDTSError err.description ,"DTS_Package_N" Msgbox Err & ": " & Err.Description Err.clear End If Set objDTS = Nothing the problem I have is this will run some of the packages and not others, each package when it runs updates a log table as the first step, the ones that do not run do not even execute this first step. The packages will all run when executed from mmc, and all have identical properties. I have tried renaming the package, deleting it and reloading it from a saved file. The packages all reside on the same server, and access the same database. Can some one throw some light on this problem? . |
#3
| |||
| |||
|
|
Yes when the package is run as a job, the majority of the packages run using the script below, 3 of the packages do not run, and no errors occurs. I have isolated one of the packages the section of script to call it, created a new package with a connection to the server and the activex script as below, and a new job and tried this with the existing package that does the loading and a new recreated package. Again the jon completes successfully but none of the steps appear to have been run. I have even inlcuded the GUID of the package and version in the below script, the first time it errored due to me not including the curly brackets, second time it ran reporting no errors. The steps in the package doing the loading, first log an entry in a table stating the time the package started running, the second step is to truncate the destination table, and the third is to transfer the data about 300,000 rows from an Oracle database which should take circa 10 mins to run, but the job completes in seconds !! I hope this helps as I have just about run out of things to try. -----Original Message----- Are you saying that some packages do not execute when scheduled then ? http://support.microsoft.com/?kbid=269074 -- 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 "Mark Phillips" <mark.phillips (AT) db (DOT) com> wrote in message news:070101c34494$8eb91a50$a001280a (AT) phx (DOT) gbl... I am using an active X script to run several DTS packages: 'Set objDTS=CreateObject("DTS.Package") 'objDTS.LoadFromSQLServer "LONRPT01", "sa","passwor d" , DTSSQLStgFlag_Default, , , , "DTS_Package_N" 'objDTS.Execute If Err <> 0 Then LogDTSError err.description ,"DTS_Package_N" Msgbox Err & ": " & Err.Description Err.clear End If Set objDTS = Nothing the problem I have is this will run some of the packages and not others, each package when it runs updates a log table as the first step, the ones that do not run do not even execute this first step. The packages will all run when executed from mmc, and all have identical properties. I have tried renaming the package, deleting it and reloading it from a saved file. The packages all reside on the same server, and access the same database. Can some one throw some light on this problem? . |
![]() |
| Thread Tools | |
| Display Modes | |
| |