![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, * *I'm running this version on Window Server 2003 SP 2. When I create my trigger in Power Designer 9.5.2.873 I use the following: create trigger TR_UpdateFaxSL after update on tbl_FaxServiceLogger referencing new as new_data old as old_data begin * -- a bunch of stuff end * It seems to create fine, but when I run an update against the table I get an error saying 'correlation name 'old_data' not found. Hello Eric |
#3
| |||
| |||
|
|
On 22 Sep., 01:20, eric <pos... (AT) cox (DOT) net> wrote: Hello, I'm running this version on Window Server 2003 SP 2. When I create my trigger in Power Designer 9.5.2.873 I use the following: create trigger TR_UpdateFaxSL after update on tbl_FaxServiceLogger referencing new as new_data old as old_data begin -- a bunch of stuff end It seems to create fine, but when I run an update against the table I get an error saying 'correlation name 'old_data' not found. Hello Eric I tried your code with my ASA 10.0.1 Looks OK Regards Thomas |
#4
| |||
| |||
|
|
Hello, I'm running this version on Window Server 2003 SP 2. When I create my trigger in Power Designer 9.5.2.873 I use the following: create trigger TR_UpdateFaxSL after update on tbl_FaxServiceLogger referencing new as new_data old as old_data begin -- a bunch of stuff end It seems to create fine, but when I run an update against the table I get an error saying 'correlation name 'old_data' not found. If I look in Sybase Central at the trigger, I see it defined as this: ALTER TRIGGER "TR_UpdateFaxSL" on DBA.tbl_FaxServiceLogger for update as begin -- all my stuff here end It seems the referencing statement is missing. And I have an 'as' in the command. None of my other triggers look like this and they all work. Am I building the trigger wrong? thanks eric |
#5
| |||
| |||
|
|
Hello, I'm running this version on Window Server 2003 SP 2. When I create my trigger in Power Designer 9.5.2.873 I use the following: create trigger TR_UpdateFaxSL after update on tbl_FaxServiceLogger referencing new as new_data old as old_data begin -- a bunch of stuff end It seems to create fine, but when I run an update against the table I get an error saying 'correlation name 'old_data' not found. If I look in Sybase Central at the trigger, I see it defined as this: ALTER TRIGGER "TR_UpdateFaxSL" on DBA.tbl_FaxServiceLogger for update as begin -- all my stuff here end It seems the referencing statement is missing. And I have an 'as' in the command. None of my other triggers look like this and they all work. Am I building the trigger wrong? thanks eric |
#6
| |||
| |||
|
|
eric wrote: Hello, I'm running this version on Window Server 2003 SP 2. When I create my trigger in Power Designer 9.5.2.873 I use the following: create trigger TR_UpdateFaxSL after update on tbl_FaxServiceLogger referencing new as new_data old as old_data begin -- a bunch of stuff end It seems to create fine, but when I run an update against the table I get an error saying 'correlation name 'old_data' not found. If I look in Sybase Central at the trigger, I see it defined as this: ALTER TRIGGER "TR_UpdateFaxSL" on DBA.tbl_FaxServiceLogger for update as begin -- all my stuff here end It seems the referencing statement is missing. And I have an 'as' in the command. None of my other triggers look like this and they all work. Am I building the trigger wrong? thanks eric If you take your trigger code and connect to your SQL Anywhere database using dbisql and execute the code, does it work? If it does, I'd try reposting your question on a Power Designer newsgroup, and if it doesn't, then the error you get (my guess is "trigger already exists") will be a good piece of information that points you towards what is going wrong. Hi, |
![]() |
| Thread Tools | |
| Display Modes | |
| |