I've noticed that when I have a sql server agent job that calls a DTS
package, and that package in turn calls another DTS package, when the
inner package fails, it does not return an error to the outer package
and hence the sql server agent job indicates success even though the
inner dts package failed.
Is there a way to get the sql server agent job to indicate a failure
when the inner dts package fails?
Thanks in advance.
Walter
waltmallon@.yahoo.comunfortunately you will have to either write an extra step into the
"called/children" packages that returns a success or failure, I have done
this in the past with the RAISERROR WITH LOG for TSQL and and the err
collection in an ActiveX script this way your package can return a status to
the parent DTS packag, I am sure Darren Green (sqldts.com) will/may have
better ideas
--
Olu Adedeji
"Walter Mallon" <waltmallon@.yahoo.com> wrote in message
news:28db1398.0402190854.46eedc55@.posting.google.com...
> I've noticed that when I have a sql server agent job that calls a DTS
> package, and that package in turn calls another DTS package, when the
> inner package fails, it does not return an error to the outer package
> and hence the sql server agent job indicates success even though the
> inner dts package failed.
> Is there a way to get the sql server agent job to indicate a failure
> when the inner dts package fails?
> Thanks in advance.
> Walter
> waltmallon@.yahoo.com
Showing posts with label turn. Show all posts
Showing posts with label turn. Show all posts
Friday, March 23, 2012
nesting DTS packages and returning errors
I've noticed that when I have a sql server agent job that calls a DTS
package, and that package in turn calls another DTS package, when the
inner package fails, it does not return an error to the outer package
and hence the sql server agent job indicates success even though the
inner dts package failed.
Is there a way to get the sql server agent job to indicate a failure
when the inner dts package fails?
Thanks in advance.
Walter
waltmallon@.yahoo.comunfortunately you will have to either write an extra step into the
"called/children" packages that returns a success or failure, I have done
this in the past with the RAISERROR WITH LOG for TSQL and and the err
collection in an ActiveX script this way your package can return a status to
the parent DTS packag, I am sure Darren Green (sqldts.com) will/may have
better ideas
--
Olu Adedeji
"Walter Mallon" <waltmallon@.yahoo.com> wrote in message
news:28db1398.0402190854.46eedc55@.posting.google.com...
> I've noticed that when I have a sql server agent job that calls a DTS
> package, and that package in turn calls another DTS package, when the
> inner package fails, it does not return an error to the outer package
> and hence the sql server agent job indicates success even though the
> inner dts package failed.
> Is there a way to get the sql server agent job to indicate a failure
> when the inner dts package fails?
> Thanks in advance.
> Walter
> waltmallon@.yahoo.comsql
package, and that package in turn calls another DTS package, when the
inner package fails, it does not return an error to the outer package
and hence the sql server agent job indicates success even though the
inner dts package failed.
Is there a way to get the sql server agent job to indicate a failure
when the inner dts package fails?
Thanks in advance.
Walter
waltmallon@.yahoo.comunfortunately you will have to either write an extra step into the
"called/children" packages that returns a success or failure, I have done
this in the past with the RAISERROR WITH LOG for TSQL and and the err
collection in an ActiveX script this way your package can return a status to
the parent DTS packag, I am sure Darren Green (sqldts.com) will/may have
better ideas
--
Olu Adedeji
"Walter Mallon" <waltmallon@.yahoo.com> wrote in message
news:28db1398.0402190854.46eedc55@.posting.google.com...
> I've noticed that when I have a sql server agent job that calls a DTS
> package, and that package in turn calls another DTS package, when the
> inner package fails, it does not return an error to the outer package
> and hence the sql server agent job indicates success even though the
> inner dts package failed.
> Is there a way to get the sql server agent job to indicate a failure
> when the inner dts package fails?
> Thanks in advance.
> Walter
> waltmallon@.yahoo.comsql
Friday, March 9, 2012
Negative reserved size
My turn to ask a question.
Running sp_spaceused on one of my tables yields a negative reserved size (-96 kb), and a corresponding negative unused size.
The table has only 7 fields, all varchar, datetime, or int. No indexes or foreign keys. Under 2000 rows.
I'm running 2000 with patches.
Anybody see this before? I couldn't find anything about this on Microsoft's support site.
blindmanIf you run
sp_spaceused tablename, true
does the value change? the true forces sysindexes to be updated and reflected in what's returned.|||Thanks. That did it. I was not aware of that sp_spaceused parameter.
Apparently, the sp_spaceused parameter defaults to "False"!
blindman|||Yes it does, it really jsut runs a DBCC updateusage (I believe only against the table, it might be the database though) THat updates your sysindexes which is what spaceused relies on.
Don't know how you got negative values in reserved though, I tried making it by doing bulk inserts into an new empty table but it gave me O for reserved until I ran the updateusage.
Running sp_spaceused on one of my tables yields a negative reserved size (-96 kb), and a corresponding negative unused size.
The table has only 7 fields, all varchar, datetime, or int. No indexes or foreign keys. Under 2000 rows.
I'm running 2000 with patches.
Anybody see this before? I couldn't find anything about this on Microsoft's support site.
blindmanIf you run
sp_spaceused tablename, true
does the value change? the true forces sysindexes to be updated and reflected in what's returned.|||Thanks. That did it. I was not aware of that sp_spaceused parameter.
Apparently, the sp_spaceused parameter defaults to "False"!
blindman|||Yes it does, it really jsut runs a DBCC updateusage (I believe only against the table, it might be the database though) THat updates your sysindexes which is what spaceused relies on.
Don't know how you got negative values in reserved though, I tried making it by doing bulk inserts into an new empty table but it gave me O for reserved until I ran the updateusage.
Subscribe to:
Posts (Atom)