Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Database

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-02-01 : 23:35:44
Joanne writes "I have db1 in UserRegister folder and db2 in RegisterHome folder. When new user registered in db1, I want to read into db2. Both dbTable(Register Table) have same field name "DBNumber", which is auto number. Now I want to use MAX function, first pull out the last number from both tables, then compare, if MAX(DBNumber)in dbTable1 > MAX(DBNumber)in dbTable2, it will write those data to dbTable 2. The problem is: When writing new data to dbTable2, it will involve to database at the same time, that means, how to get two connections open at the same time? Please help!

Joanne"
   

- Advertisement -