i'm looking for some assistance on a trigger i'm developing. upon update, i need a trigger to update tables in oracle based on an index and information in a table in sql. the problem is, how do you pass the index from the updated row in sql into the trigger?
--------------
create trigger trgrmupdate on dbo.room
for update as
declare @rmkey nvarchar(10),
@rmid nvarchar(20)
select @rmkey = rowkey from room
set @rmid = (select roomid from room
where rowkey = @rmkey)
this works but it passes the the last row of the column, not the row affected.
thanks,
jb
--------------
create trigger trgrmupdate on dbo.room
for update as
declare @rmkey nvarchar(10),
@rmid nvarchar(20)
select @rmkey = rowkey from room
set @rmid = (select roomid from room
where rowkey = @rmkey)
this works but it passes the the last row of the column, not the row affected.
thanks,
jb