dbTalk Databases Forums  

Scheduled Task Fails after amending stored Procedure

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


Discuss Scheduled Task Fails after amending stored Procedure in the microsoft.public.sqlserver.dts forum.



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

Default Scheduled Task Fails after amending stored Procedure - 01-12-2004 , 05:26 AM






I have a DTS package that is called by a scheduled job.
The dts package calls a stored proc.
I've noticed that when i amend the stored proc, the next
time the job is due to run it fails.
If i recreate the package then schedule all is well.

Obviously a pain in the bum while i'm testing ...

Is there a way around this???

Regards
Paul..

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

Default Re: Scheduled Task Fails after amending stored Procedure - 01-12-2004 , 05:29 AM






Can you give me an example.

This does seem odd

DTS shouldn't care what you define internally in the proc. Is there
anything that the proc exposes which changes i.e.

Output variables
Differing recordset?

What fails?
With what error?



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote

Quote:
I have a DTS package that is called by a scheduled job.
The dts package calls a stored proc.
I've noticed that when i amend the stored proc, the next
time the job is due to run it fails.
If i recreate the package then schedule all is well.

Obviously a pain in the bum while i'm testing ...

Is there a way around this???

Regards
Paul..



Reply With Quote
  #3  
Old   
Diggers
 
Posts: n/a

Default Re: Scheduled Task Fails after amending stored Procedure - 01-12-2004 , 05:40 AM



Thanks for your response Allan,
I've been changing the number of fields returned in my
recordset, and playing about with certain formats.

The message i've found is basically telling me that a
column that i have removed was not found.

Presummably the package is storing the details of the
procedure rather than just calling the proc from the
database!?!?!?!

Do these comments help?
Paul..


Quote:
-----Original Message-----
Can you give me an example.

This does seem odd

DTS shouldn't care what you define internally in the
proc. Is there
anything that the proc exposes which changes i.e.

Output variables
Differing recordset?

What fails?
With what error?



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote in message
news:062a01c3d8fe$e87dfed0$a601280a (AT) phx (DOT) gbl...
I have a DTS package that is called by a scheduled job.
The dts package calls a stored proc.
I've noticed that when i amend the stored proc, the next
time the job is due to run it fails.
If i recreate the package then schedule all is well.

Obviously a pain in the bum while i'm testing ...

Is there a way around this???

Regards
Paul..


.


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

Default Re: Scheduled Task Fails after amending stored Procedure - 01-12-2004 , 05:46 AM



Are you using this as the source to a Data Pump?

If yes then the rowset returned is used to define the SourceColumns property
of the Transformation object.

If you remove a column from the expected output the SQL Server DTS does not
automatically remap the transformations

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote

Quote:
Thanks for your response Allan,
I've been changing the number of fields returned in my
recordset, and playing about with certain formats.

The message i've found is basically telling me that a
column that i have removed was not found.

Presummably the package is storing the details of the
procedure rather than just calling the proc from the
database!?!?!?!

Do these comments help?
Paul..


-----Original Message-----
Can you give me an example.

This does seem odd

DTS shouldn't care what you define internally in the
proc. Is there
anything that the proc exposes which changes i.e.

Output variables
Differing recordset?

What fails?
With what error?



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote in message
news:062a01c3d8fe$e87dfed0$a601280a (AT) phx (DOT) gbl...
I have a DTS package that is called by a scheduled job.
The dts package calls a stored proc.
I've noticed that when i amend the stored proc, the next
time the job is due to run it fails.
If i recreate the package then schedule all is well.

Obviously a pain in the bum while i'm testing ...

Is there a way around this???

Regards
Paul..


.




Reply With Quote
  #5  
Old   
Diggers
 
Posts: n/a

Default Re: Scheduled Task Fails after amending stored Procedure - 01-12-2004 , 06:50 AM



Ok, that sounds like my problem...
Will have to get my structure correct :-)
Is there an easier way of doing this?
Thanks
paul..

Quote:
-----Original Message-----
Are you using this as the source to a Data Pump?

If yes then the rowset returned is used to define the
SourceColumns property
of the Transformation object.

If you remove a column from the expected output the SQL
Server DTS does not
automatically remap the transformations

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote in message
news:065e01c3d900$ea009540$a601280a (AT) phx (DOT) gbl...
Thanks for your response Allan,
I've been changing the number of fields returned in my
recordset, and playing about with certain formats.

The message i've found is basically telling me that a
column that i have removed was not found.

Presummably the package is storing the details of the
procedure rather than just calling the proc from the
database!?!?!?!

Do these comments help?
Paul..


-----Original Message-----
Can you give me an example.

This does seem odd

DTS shouldn't care what you define internally in the
proc. Is there
anything that the proc exposes which changes i.e.

Output variables
Differing recordset?

What fails?
With what error?



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server
Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote in message
news:062a01c3d8fe$e87dfed0$a601280a (AT) phx (DOT) gbl...
I have a DTS package that is called by a scheduled
job.
The dts package calls a stored proc.
I've noticed that when i amend the stored proc, the
next
time the job is due to run it fails.
If i recreate the package then schedule all is well.

Obviously a pain in the bum while i'm testing ...

Is there a way around this???

Regards
Paul..


.



.


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

Default Re: Scheduled Task Fails after amending stored Procedure - 01-12-2004 , 07:28 AM



Not really. You have identified the best solution. If you do not know a
structure up front then it is difficult for everything else to adapt as
well.



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote

Quote:
Ok, that sounds like my problem...
Will have to get my structure correct :-)
Is there an easier way of doing this?
Thanks
paul..

-----Original Message-----
Are you using this as the source to a Data Pump?

If yes then the rowset returned is used to define the
SourceColumns property
of the Transformation object.

If you remove a column from the expected output the SQL
Server DTS does not
automatically remap the transformations

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote in message
news:065e01c3d900$ea009540$a601280a (AT) phx (DOT) gbl...
Thanks for your response Allan,
I've been changing the number of fields returned in my
recordset, and playing about with certain formats.

The message i've found is basically telling me that a
column that i have removed was not found.

Presummably the package is storing the details of the
procedure rather than just calling the proc from the
database!?!?!?!

Do these comments help?
Paul..


-----Original Message-----
Can you give me an example.

This does seem odd

DTS shouldn't care what you define internally in the
proc. Is there
anything that the proc exposes which changes i.e.

Output variables
Differing recordset?

What fails?
With what error?



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server
Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote in message
news:062a01c3d8fe$e87dfed0$a601280a (AT) phx (DOT) gbl...
I have a DTS package that is called by a scheduled
job.
The dts package calls a stored proc.
I've noticed that when i amend the stored proc, the
next
time the job is due to run it fails.
If i recreate the package then schedule all is well.

Obviously a pain in the bum while i'm testing ...

Is there a way around this???

Regards
Paul..


.



.




Reply With Quote
  #7  
Old   
diggers
 
Posts: n/a

Default Re: Scheduled Task Fails after amending stored Procedure - 01-12-2004 , 07:47 AM



Thanks for your help Allan
Regards
Paul..

Quote:
-----Original Message-----
Not really. You have identified the best solution. If
you do not know a
structure up front then it is difficult for everything
else to adapt as
well.



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote in message
news:07e001c3d90a$aba20bd0$a301280a (AT) phx (DOT) gbl...
Ok, that sounds like my problem...
Will have to get my structure correct :-)
Is there an easier way of doing this?
Thanks
paul..

-----Original Message-----
Are you using this as the source to a Data Pump?

If yes then the rowset returned is used to define the
SourceColumns property
of the Transformation object.

If you remove a column from the expected output the SQL
Server DTS does not
automatically remap the transformations

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.allisonmitchell.com - Expert SQL Server
Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote in message
news:065e01c3d900$ea009540$a601280a (AT) phx (DOT) gbl...
Thanks for your response Allan,
I've been changing the number of fields returned in
my
recordset, and playing about with certain formats.

The message i've found is basically telling me that a
column that i have removed was not found.

Presummably the package is storing the details of the
procedure rather than just calling the proc from the
database!?!?!?!

Do these comments help?
Paul..


-----Original Message-----
Can you give me an example.

This does seem odd

DTS shouldn't care what you define internally in the
proc. Is there
anything that the proc exposes which changes i.e.

Output variables
Differing recordset?

What fails?
With what error?



--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server
MVP)
www.allisonmitchell.com - Expert SQL Server
Consultancy.
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals -
http://www.sqlpass.org


"Diggers" <paul.digby (AT) sca (DOT) com> wrote in message
news:062a01c3d8fe$e87dfed0$a601280a (AT) phx (DOT) gbl...
I have a DTS package that is called by a scheduled
job.
The dts package calls a stored proc.
I've noticed that when i amend the stored proc,
the
next
time the job is due to run it fails.
If i recreate the package then schedule all is
well.

Obviously a pain in the bum while i'm testing ...

Is there a way around this???

Regards
Paul..


.



.



.


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.