TRIGGER (AFTER INSERT) and Store Procedure ... insert failed !
From: Herve MAILLARD (rvkeops-nospam-_at_hotmail.com)
Date: 09/06/04
- Next message: Roji. P. Thomas: "Re: TRIGGER (AFTER INSERT) and Store Procedure ... insert failed !"
- Previous message: Russell Fields: "Re: String manipulation - taking one long csv string and putting into separate record fields"
- Next in thread: Roji. P. Thomas: "Re: TRIGGER (AFTER INSERT) and Store Procedure ... insert failed !"
- Reply: Roji. P. Thomas: "Re: TRIGGER (AFTER INSERT) and Store Procedure ... insert failed !"
- Reply: Herve MAILLARD: "Re: TRIGGER (AFTER INSERT) and Store Procedure ... insert failed !"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 6 Sep 2004 16:30:46 +0200
Hi,
I have a trigger on a table "CR_OF". :
CREATE TRIGGER Manage_hist ON dbo.cr_of AFTER INSERT AS
EXEC Manage_Data
If my SP is empty (juste keep DECLARE instructions) I have no problem to
insert records in my table.
The problem is that if I remove the comments in my SP then the insert failed
every time...
I really don't understand why ?
I have tested my SP in debug mode and it works well.
Also, my trigger is "after inster" so the data should be already in the
table. No ? Even if I've got something wrong in my SP, how can it failed the
insert who has been alrerady done...
Thanks for your help....I have to install my application in 2 days, and I
really don't know how to solve this probem.
In my SP I use : cursors, update and insert sql instructions.
Herve MAILLARD
- Next message: Roji. P. Thomas: "Re: TRIGGER (AFTER INSERT) and Store Procedure ... insert failed !"
- Previous message: Russell Fields: "Re: String manipulation - taking one long csv string and putting into separate record fields"
- Next in thread: Roji. P. Thomas: "Re: TRIGGER (AFTER INSERT) and Store Procedure ... insert failed !"
- Reply: Roji. P. Thomas: "Re: TRIGGER (AFTER INSERT) and Store Procedure ... insert failed !"
- Reply: Herve MAILLARD: "Re: TRIGGER (AFTER INSERT) and Store Procedure ... insert failed !"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|