Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a website. That contain database in server side. When i acess the website at local host, that time i want the database at server side to copy into local host. After i am updated the database i want to replace or update the database at server. I am new to Asp.net, so if some knows these help me.
Posted
Comments
Syed Salman Raza Zaidi 1-Aug-11 3:41am    
do you want a copy of Server's database on local host? right?
ssyuvaraja 1-Aug-11 4:38am    
yes.

That is a very bad idea - why do you want to do that?

Think about it: Databases and websites are multi-user capable. If you do what you are suggesting, then each user who tries to log in to your system will get a local copy of the database. They will then modify it, and write it back to the server. The one that takes longest to make the changes will be the one who last writes the database - everybody elses' changes are potentially lost.

What are you trying to achieve, because I can't help thinking this is very much the wrong way to go...
 
Share this answer
 
Comments
ssyuvaraja 1-Aug-11 4:32am    
Thank you. But I am only copy the database to the localhost, for the admin login user. Due to that i can make change in my website from any local host by login to the admin. So Please say me if u have any ways to do that.

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