Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update two databases simultanoeusly

Status
Not open for further replies.

swot

Programmer
Jan 19, 2007
4
SA
Hi guys,
i was wondering how the following problem can be attempted.
I have two databases with the same structure.
they both have a table Students.

now from my program i have to update the table from both the databases at the same time with the same data.
i use stored procedures to update the table.

can i connect to two databases at same time in delphi.
if yes,how can i do that and also update both of them together at same time

thanks...waiting eagerly for your reply
 
Could you not have a procedure that you call to perform the two updates together ? You could make use of 2 TQuery components for the INSERT/UPDATE actions, each of these being connected to a different TDatabase component pointed to the databases in question.
Would this work for you ?
Hope it helps .

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top