asp.net - using linked server or separate connection strings? -


i have 10 databases 3 cities of them located in 1 db server different instances , 1 main database. each city has following databases:

1-db1 2-db2 3-db3 

every record inserted in db main has city field.according th city field of inserted record same record must inserted in 3 databases of specified city in inserted record in db main. better use linked server or using separate connection string in c# code? know connection string should changed each database.

ideally wouldn't make application responsible keeping databases in sync - many things go wrong - application might crash, network might go down...

you might better off using database trigger, way application has update 1 database , trigger rest. here's msdn article explaining how it: create trigger


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -