Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Scheduling an sp
Hi All,
I hope I can explain this well.
I have an sp that populates certain tables with historical data and I've
scheduled
a job (using EM) that runs this sp on the first day of each quarter.
My question is, within the sp, if anything goes wrong, I do a rollback and
issue
a Return(5). Will this be interpeted as a failure within the job? Somehow I
think not.

So, how do I indicate failure to the job that schedules the sp?



Dan




Report this thread to moderator Post Follow-up to this message
Old Post
dan artuso
10-01-05 01:23 AM


Re: Scheduling an sp
Dan,

Add a RAISERROR statement to your stored procedure.

HTH

Jerry
"dan artuso" < dartuso@NOSPAMpagepe
arls.com> wrote in message
news:OjXqmJfxFHA.2924@TK2MSFTNGP15.phx.gbl...
> Hi All,
> I hope I can explain this well.
> I have an sp that populates certain tables with historical data and I've
> scheduled
> a job (using EM) that runs this sp on the first day of each quarter.
> My question is, within the sp, if anything goes wrong, I do a rollback and
> issue
> a Return(5). Will this be interpeted as a failure within the job? Somehow
> I think not.
>
> So, how do I indicate failure to the job that schedules the sp?
>
>
>
> Dan
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Jerry Spivey
10-01-05 01:23 AM


Re: Scheduling an sp
Thanks Jerry

Dan


"Jerry Spivey" <jspivey@vestas-awt.com> wrote in message
news:u7haHMfxFHA.1148@TK2MSFTNGP11.phx.gbl...
> Dan,
>
> Add a RAISERROR statement to your stored procedure.
>
> HTH
>
> Jerry
> "dan artuso" < dartuso@NOSPAMpagepe
arls.com> wrote in message
> news:OjXqmJfxFHA.2924@TK2MSFTNGP15.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
dan artuso
10-01-05 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 01:45 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006