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

I am working on online and store ordering Pizza project.
In this project I have two different databases one is the server where online ordered records will insert and another one is another server database which runs only in the stores.

My requirement is Whenever any order placed in the server database then that same order must be inserted into the another server database automatically without using triggers.

Is there any solution please let me know

Bhavana Ky
Posted
Updated 27-Nov-14 21:16pm
v3

you need work on database mirroring and replication

check this


[database mirroring and replication]

another way is that why you insert a record in your 1st database then insert in 2nd db also with transaction block so that if any error while doing this operation rollback it all or take action as per your need
 
Share this answer
 
Yes you can do that using linked server.

Create one SP to insert to your records from one server db to another server db .
You can create a job and set your intervel like how freequently you need to run the SP.

Google for Linked server and for running Job in SQl
 
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