Click here to Skip to main content
16,015,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Any one can help me please
i want insert same data in two different database simultaneously.
While both database has same table and their schema....
thanks
Posted

1 solution

You can do in 2 approch either you change the query where you inserting the data in one datebase at the same time you save the data in different database 

2nd one in code behind you change the connection string 2 times for insert data in 2 different database

INSERT INTO  
  db1.myTbl(value) 
INSERT INTO  
  db2.myTbl(value)
 
Share this answer
 
Comments
shubham147 23-Feb-12 2:38am    
It means i have to write two time query for inserting data for two database table?

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