Viewing 8 posts - 1 through 8 (of 8 total)
Till now this is my solution (partial code):
IF (@error = 0)
BEGIN
-- elimino i faldoni associati al sito
UPDATE AF_Faldone SET Status = 1 WHERE (IDSito = @idSito)
SET @error = @@ERROR
END
IF (@error...
October 26, 2007 at 8:30 am
Yes, I knows the trigger solution but I would prefer something else if it exists, otherwise goes on trigger...
Tnx
October 26, 2007 at 8:06 am
Till now (and I think also in the future) performance is not so important, but if you have another solution, faster, it's welcome.
Can you explain me where's performance problems in...
August 29, 2007 at 4:05 pm
Mmm, if I'll have to put this constraint I'll remember of your solution... Till now the constraint is not important. Tnx
August 29, 2007 at 12:39 pm
>>>>have to check @@ERROR
I know, i'm using always this.
Tnx to all.
August 29, 2007 at 9:59 am
Tnx to all!!
I'll never reach it without you... Probably only the single trigger, but the trigger for more than one insert is... awesome!! Tnx again.
Just last two questions:
1) I'll put...
August 29, 2007 at 9:29 am
I think the solution of James is almost the right one...
Some explanation:
"if exists (select 1 from inserted where val_numspedizione = 0)"
is to prevent the trigger executio if the insert was...
August 29, 2007 at 8:44 am
Ok, below is the script for the table...
The field of interest are:
ID_Spedizione
AA_Anno
Val_NumSpedizione
The last is the number to create...
Tnx
----------------------------------------
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_GSP_Spedizione_GSP_Spedizione1]') and OBJECTPROPERTY(id, N'IsForeignKey')...
August 29, 2007 at 7:56 am
Viewing 8 posts - 1 through 8 (of 8 total)