Click here to Skip to main content
16,004,977 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wants to fetch the recods from one server database table to other server example local server data base table using sql 2005 and also provide the condition in any new records is add again in server table then after some time our local table also insert that new records and also avoid insert duplicate records

Explain withe one example inf possible then plaz send send the one little project

i am not able to understand (on our system)wat say three answer given below
can any one tell how to achive the gud solution of this prob

Thaks
Posted
Updated 31-Jan-10 20:53pm

Ganesh_verma wrote:
Explain withe one example inf possible then plaz send send the one little project


If you want to give demands, you should go to the job board and offer to pay someone.

You do this the same as if they were on the same DB server, you just need two connection strings, then code to read the data from one, and code to insert it into the other, applying the conditions that you've listed. Apart from the fact that you need to do your own work, it's not possible to give you exact code without knowing your DB schema.

BTW I deleted your duplicate question.
 
Share this answer
 
 
Share this answer
 
If it was me I'd create an SSIS server package scheduled to run at a reasonable interval.
You could mirror the databases
Look at data publishing in SQL Books On Line.
Backup the database and restore to the other
If the tables are not too big use an hetrogenous query based on the records not being in the destination table
Get creative.
Use merges.
Look up documentation on updating disconnected databases. .Net docs cover this.

Have I covered it ?
 
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