Re: Identity columns with ClientDataSets?
From: Kevin Frevert (what_at_meworry.com)
Date: 07/03/04
- Next message: Arnie Mauer: "Re: ADO performance"
- Previous message: Mike Shkolnik: "Re: SQL Server Text File import"
- In reply to: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Next in thread: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Reply: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 3 Jul 2004 07:46:50 -0500
"Brian Bushay TeamB" <BBushay@Nmpls.com> wrote in message
news:mr3ce0ddj6qat5qtstm4u51j07ika5bupt@4ax.com...
> This thread does pertain to SQL server.
Are you sure? The first line of the thread is..
"How do you handle Identity columns with SQL Server and ClientDataSets?"
>You can also turn of the
> Identity generation and insert your on value using
> SET IDENTITY_INSERT YourTable ON
> In my opinion you are doing too much work if your database is SQL server.
In my opinion, that is more work. Why would I want to write "SET ...ON/OFF"
every time I want to do inserts just so I could override MSSQL's default
behavior? For us (and many others I've seen), the seed table/stored proc
solution works best for situations where you need to know the next available
key value before you apply the changes to the database (master-detail, user
insistence, ect). To make things even easier (for us) I've wrapped the
stored procedure functionality into a component so now it's..
SomeValue := GetKey.GetNextID('Customers');
Again, that's my opinion and it works best for us. Different situations
require different solutions, so do whatever works best for you and your
customers.
krf
"If your writing a lot of code to do something, your probably doing it
wrong"
- Marco Cantu
- Next message: Arnie Mauer: "Re: ADO performance"
- Previous message: Mike Shkolnik: "Re: SQL Server Text File import"
- In reply to: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Next in thread: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Reply: Brian Bushay TeamB: "Re: Identity columns with ClientDataSets?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|