Hi all,
I am new to ASE and ASA is different than ASE. I am using ASE 12.5 and
I am trying to create a trigger. Foe example here's a trigger:
CREATE trigger dbo.TDA_ADVISOR on dbo.Advisor for delete
as
begin
declare @@iAdvisorSeqNo numeric(10)
select @@iAdvisorSeqNo = DELETED.ADVISOR_SEQ_NO from
DELETED
delete from ADVISOR_CLIENT_REG where
ADVISOR_CLIENT_REG.ADVISOR_SEQ_NO = @iAdvisorSeqNo
end
HERES MY ERROR:
Msg 11729, Level 15, State 2:
Server 'SYBFAO_TRD2', Procedure 'dbo.TDA_ADVISOR', Line 4:
The name '@@iAdvisorSeqNo' is not a valid local variable name.
Msg 137, Level 15, State 1:
any help please is greatly appreciates.
-Gerard
I am new to ASE and ASA is different than ASE. I am using ASE 12.5 and
I am trying to create a trigger. Foe example here's a trigger:
CREATE trigger dbo.TDA_ADVISOR on dbo.Advisor for delete
as
begin
declare @@iAdvisorSeqNo numeric(10)
select @@iAdvisorSeqNo = DELETED.ADVISOR_SEQ_NO from
DELETED
delete from ADVISOR_CLIENT_REG where
ADVISOR_CLIENT_REG.ADVISOR_SEQ_NO = @iAdvisorSeqNo
end
HERES MY ERROR:
Msg 11729, Level 15, State 2:
Server 'SYBFAO_TRD2', Procedure 'dbo.TDA_ADVISOR', Line 4:
The name '@@iAdvisorSeqNo' is not a valid local variable name.
Msg 137, Level 15, State 1:
any help please is greatly appreciates.
-Gerard