| |

VerySource

 Forgot password?
 Register
Search
View: 811|Reply: 5

Ask: Is there a way to write data to the ORACLE database in the SQL Server trigger?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-22 18:30:02
| Show all posts |Read mode
As the title
Reply

Use magic Report

0

Threads

20

Posts

19.00

Credits

Newbie

Rank: 1

Credits
19.00

 China

Post time: 2020-5-4 16:15:02
| Show all posts
Theoretically it is possible
Reply

Use magic Report

0

Threads

7

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-5-6 14:30:02
| Show all posts
Link server
Reply

Use magic Report

0

Threads

30

Posts

25.00

Credits

Newbie

Rank: 1

Credits
25.00

 China

Post time: 2020-5-7 16:45:01
| Show all posts
Similar to this:
USE master
GO
EXEC sp_addlinkedserver
   'svr_lnk',
   'Oracle',
   'MSDAORA',
   'MyServer'
GO
EXEC sp_addlinkedsrvlogin 'LONDON Mktg', 'false', 'sa', 'Admin', NULL
GO
CREATE TRIGGER TR_1 ON TABLE1
AS
INSERT svr_lnk.dbname.dbo.table2 value (...)
Reply

Use magic Report

0

Threads

30

Posts

25.00

Credits

Newbie

Rank: 1

Credits
25.00

 China

Post time: 2020-5-7 18:00:01
| Show all posts
Similar to this:
USE master
GO
EXEC sp_addlinkedserver
   'svr_lnk',
   'Oracle',
   'MSDAORA',
   'MyServer'
GO
EXEC sp_addlinkedsrvlogin 'svr_lnk', 'false', 'sa', 'Admin', NULL
GO
CREATE TRIGGER TR_1 ON TABLE1
AS
INSERT svr_lnk.dbname.dbo.table2 value (...)
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-5-17 10:45:01
| Show all posts
Can triggers cross servers?
A post on the top of the road
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list