Subject | Re: [Firebird-Architect] GUID Key Fields |
---|---|
Author | Kevin Berry |
Post date | 2005-03-24T16:18:51Z |
--- Ivan Prenosil <Ivan.Prenosil@...> wrote:
has made so far. I guess UDFs would work nicely
because:
* I can generate the GUID in Delphi code.
* I can store the UDF in a key field in 16 bytes.
Only drawbacks:
* I'll just have to use the UDF in all the queries I
write, but this isn't too bad because I can still use
the full GUID - even when use SQL at the command
prompt.
* Performance of the UDF may slow down inserts and
updates a bit?
Of course, the icing on the cake would be direct,
native GUID type support in Firebird. :-) I was
really hoping someone would say that this is planned
for a future release of Firebid!
Cheers,
Kevin.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
> If you do not mind using UDFs, then just write oneActually, this is probably the best suggestion anyone
> function
> to generate GUID in binary form, another to convert
> it
> to some nicer, binary-zero-free, printable format.
> Do you need anything else ?
has made so far. I guess UDFs would work nicely
because:
* I can generate the GUID in Delphi code.
* I can store the UDF in a key field in 16 bytes.
Only drawbacks:
* I'll just have to use the UDF in all the queries I
write, but this isn't too bad because I can still use
the full GUID - even when use SQL at the command
prompt.
* Performance of the UDF may slow down inserts and
updates a bit?
Of course, the icing on the cake would be direct,
native GUID type support in Firebird. :-) I was
really hoping someone would say that this is planned
for a future release of Firebid!
Cheers,
Kevin.
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/