S
stainless
I have written a C# batch windows application (.Net Framework 1.1)
that is executed via a SQL Server 2000 job step.
Everything works fine except, when my program traps a failure, I
record the error in a log, use Application.Exit, and SQL Server is
treating this as a successful step. This needs to be flagged as Failed
in the SQL job step.
How do I inform the calling step that the executable has failed? I
cannot find a means of passing a failure code or flag out of the C# (I
know I must ne missing something obvious).
Cheers
Mark
that is executed via a SQL Server 2000 job step.
Everything works fine except, when my program traps a failure, I
record the error in a log, use Application.Exit, and SQL Server is
treating this as a successful step. This needs to be flagged as Failed
in the SQL job step.
How do I inform the calling step that the executable has failed? I
cannot find a means of passing a failure code or flag out of the C# (I
know I must ne missing something obvious).
Cheers
Mark