Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do I make a trigger in SQL SERVER which insert a record in Oracle Database?
I want to make a trigger in SQL SERVER Database Table on Insert which will Create the same record in Oracle table Database.
Posted

1 solution

Can you explain why you need to insert a record into Oracle when you insert a record into SQL Server?

I don't recommend doing this through a trigger. I would handle it through your business layer or an SSIS package. You would need to get into setting up linked servers between SQL and Oragle. Executing SQL that uses link servers has a lot of performance issues in itself. When doing a linked server query inside a trigger, you will absolutely kill the performance of your server. The trigger needs to successfully complete for your insert statement to complete. Depending on networking and system performance, you insert could easily take three to five seconds to run. This does not scale well at all.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900