Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a Live database on Server1 on which data is feeded frequently(daily). I need to access this on different sever(Server2) which needs to be updated every week with the data from Server1. How do we do this?

I have no idea of how to begin. A bit of investigation helped me know about Sql Job Agents, but i need to do this using code (preferably C#) , so that data updation occurs automatically on the destination server. Can someone please tell me other ways to do this?

Currently i have to manually take backup from server1 and restore it on server2. How can we automate this?
Posted
Updated 2-Nov-15 20:01pm
v2

1 solution

Example:
Sunday 00:00 get an backup from database

Write an console program to update your database to another server.
And use windows scheduled task to starting program sunday 00:15;
 
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