dbTalk Databases Forums  

Re: LoadFromSQLServer - odd behaviour SQL7

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Re: LoadFromSQLServer - odd behaviour SQL7 in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Phillips
 
Posts: n/a

Default Re: LoadFromSQLServer - odd behaviour SQL7 - 07-07-2003 , 11:18 AM






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.


Quote:
-----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?




.


Reply With Quote
  #2  
Old   
Mark Phillips
 
Posts: n/a

Default Re: LoadFromSQLServer - odd behaviour SQL7 - 07-07-2003 , 11:30 AM






Further more the job is owned by sa, a member of sysadmins.

The scripts are all in the same ActiveX control.

Quote:
-----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?




.


Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: LoadFromSQLServer - odd behaviour SQL7 - 07-07-2003 , 11:54 AM



There is a problem (Believe it is on the KB) and I have seen it whereby the
job reports successful as do all the steps but in fact it should fail.

Try logging into the server as the SQL Server Agent account and executing
the package.

--


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

Quote:
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?




.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.