Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i have two published sql server database.

if a record inserted in one table of a database(using c#), it should also insert into another database table(SQL, without c# code).

is this possible or not.

Please help me guys.

Thanks

What I have tried:

i think using bulk copy we can do, but i'm not sure.

Please let me the procedure.
Posted
Updated 21-Mar-16 23:39pm
Comments
RickZeeland 25-Mar-16 13:54pm    
And ? did you look at the solution ?

1 solution

If you have a newer SQL Server version you can use "Change tracking", see:
SQL Server Change Tracking on Table (Without Triggers)[^]

An older technique is SQL Dependency, see the article:
SQL Dependency with C#.NET and SQL Server 2012[^]
 
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