🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages Started by Eric Seifert Thu, 13 Jan 2000 00:00
SQL Server identity field
#1272
Author: Eric Seifert
Date: Thu, 13 Jan 2000 00:00
6 lines
844 bytes
I am using an identity field in my database that automatically incements
when a new row is added. When I try to insert a row from a TDBGrid
component using a TTable component as the dataset I get an error stating
that the field, that is the identity field,  requires a value. Has
anyone had this problem and if so is there a way to get around it?
Thanks.
Re: SQL Server identity field
#1288
Author: Mark Cashman (TeamB BCB)
Date: Tue, 25 Jan 2000 00:00
17 lines
1121 bytes
Hi, Eric!

See

http://www.temporaldoorway.com/programming/cbuilder/databaseandbde/generateuniqueid.htm

for a method of rolling your own autoincrement. It should take care of
your problem.

------
Mark Cashman (TeamB - C++ Builder), creator of The Temporal Doorway at
http://www.temporaldoorway.com
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)
http://www.temporaldoorway.com/programming/index.htm
------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads