I am using Borland's Delphi (Client/Server) and Sql Server 6.0. Does anyone
have a way to get the "soon-to-be" value of an identity column before an
insert? How about a stored procedure to gen unique IDs instead of using the
IDENTITY column type?
WARNING: Delphi & SQL Server 6.0 will fight like cats and dogs if you
attempt to use an IDENTITY (unique index) column as a Primary key. The
Borland Database Engine (BDE) get's totally lost if Sql Server gens a value
for the primary key. The BDE is expecting the key value to be written to the
database along with the record. Watch out for any stored procedures, etc
that modify a just-inserted record's key values. I have not had this problem
with Gupta's SQLWindows 5.01 ;^
Tracy