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.
| Author |
Topic |
|
sasan.kh
Starting Member
23 Posts |
Posted - 2006-11-14 : 12:49:50
|
| Hi Dear allI am building an application in delphi, using SQL server 2000 as my DBMS. I use ADO for connecting to the database. My problem is when a new transaction is started 4 tables should be updated each one having a foreign key of the previous. On updating the 2nd table there is an error which says that the foreign ke does not exist in the first table. I should mention that I have set relationships in a diagram...How can I solve this problemRegardsSasan |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-11-14 : 12:51:26
|
| You must resolve to SCOPE_IDENTITY() function after each insert, to insert as foreign key in next insert.Peter LarssonHelsingborg, Sweden |
 |
|
|
|
|
|