Re: Non-skipping IDs with Master-Detail
- From: "Vitali Kalinin" <vitkalinin@xxxxxxxxx>
- Date: Mon, 24 Oct 2005 13:28:50 +0300
I am suggesting you to reconsider DB design like this:
1. Make OrderNo autoinc field but not primary key
2. Append OrderID field of type GUID and make it a primary key
3. Add FK OrderID to OrderDetail and remove old FK on OrderNo.
This way you will be able generate OrderID values on the client side without
bothering server and keep proper Master-Detail relationship. As for non
skipping id it will be handled to you by the auto increment OrderNo field.
Regards,
Vitali
.
- Follow-Ups:
- Re: Non-skipping IDs with Master-Detail
- From: Michelle Brennan
- Re: Non-skipping IDs with Master-Detail
- References:
- Non-skipping IDs with Master-Detail
- From: Michelle Brennan
- Re: Non-skipping IDs with Master-Detail
- From: Brian Bushay TeamB
- Re: Non-skipping IDs with Master-Detail
- From: Michelle Brennan
- Non-skipping IDs with Master-Detail
- Prev by Date: Re: changing a Clinet/Server application to use connection pooling
- Next by Date: Re: Non-skipping IDs with Master-Detail
- Previous by thread: Re: Non-skipping IDs with Master-Detail
- Next by thread: Re: Non-skipping IDs with Master-Detail
- Index(es):
Relevant Pages
|