Environments: SQL server 2000, .net 2.0
In normal case, i create a invoice then create detail invoice by the ID of newest record in invoice table. But if in the below situation, I need a solution. Can you help me?
1. User 1 create record A in invoice table.
2. User 2 create record B in the invoice table.
3. Then User create record C in detail invoice table by ID of newest record (B in this situation).
--> Wrong expectation.
I guess we should have these solutions, but which one is the best and is there some sol better?:
- Use @@Identify after create record in invoice table.
- Use customize ID.
2006-11-19
15:32:46
·
2 answers
·
asked by
quoc_phan_logigear
1
in
Computers & Internet
➔ Programming & Design