Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Triggers in SQL Server - triggers in Oracle
Hello!
We got our data warehouse running on Oracle 8i, but out client-side application is running on SQL Server 7. Now I'm kinda running into some problems of how to solve some issues in SQL server. I know how to do it in Oracle...
How can I achieve the following in SQL Server 7:
in Oracle, this would simply be a query on v$session
e.g. SELECT PROGRAM into myApplName
FROM v$session WHERE audsid = userenv('sessionid');
How can I achieve the same thing in SQL server?
b) how can I modify the values of variables inside a trigger?
the equivalent in Oracle would be:
IF :NEW.STATUS='A0' THEN
:NEW.STATUS:='AC';
Any ideas?
Received on Thu Oct 05 2000 - 16:58:51 CDT