[fpc-pascal] Re: How to insert a record and get the primarykeywith sqldb?

Ludo Brands ludo.brands at free.fr
Mon Oct 24 17:25:20 CEST 2011

> > 
> > Most databases have functions to create GUID's (with different 
> > randomness quality and different storage requirements):
> No, no, no... you are missing the point of this thread, and 
> what I meant by using a GUID. The idea is that you can 
> created the GUID values client-side before you insert any 
> data into the database, thus you don't have the issue Felipe 
> mentioned in his origin post (how to reliably find the 
> primary key after you posted the record). Using GUID's on 
> client-side, you simply don't have that problem at all.

I did understand how you use GUID values :) But it is not the only way to
use GUID's as PK and Reinier was wondering about guid support, in general.
Some SQLServer users like to use "Id UNIQUEIDENTIFIER not null DEFAULT
newsequentialid()" field definitions. 

More information about the fpc-pascal mailing list