Identity columns with ClientDataSets?
From: Mark A. Deal (nospam_at_idaknow.com)
Date: 07/01/04
- Previous message: Arnie Mauer: "Re: ADO performance"
- Next in thread: Andrew: "Re: Identity columns with ClientDataSets?"
- Reply: Andrew: "Re: Identity columns with ClientDataSets?"
- Reply: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Maybe reply: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 1 Jul 2004 14:24:47 -0400
How do you handle Identity columns with SQL Server and ClientDataSets?
It would appear that the identity value is not actually generated until you
ApplyUpdates. Therefore, I am not sure how the links work (or do not) using
detail datasets since no link has been generated until the master is updated
to the physical server.
As an aside, using standard TADOQuery datasets, I have traditionally simply
performed a query to return the maximum value from a table's primary key
field and then assigned that value + 1 to my new record.
Any thoughts on this? Anybody have any convenient ways of handling this?
I'm not having much luck because I get the error, "No corresponding Master
record."
TIA
-- Mark A. Deal Document & Data Solutions, LLC http://www.docsol.com Time Matters AIC HotDocs Certified Consultant GhostFill Certified Consultant
- Previous message: Arnie Mauer: "Re: ADO performance"
- Next in thread: Andrew: "Re: Identity columns with ClientDataSets?"
- Reply: Andrew: "Re: Identity columns with ClientDataSets?"
- Reply: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Maybe reply: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|