> You use a function called NEWID, do you not? The corresponding function from the "mainstream" MS SQL Server produces a GUID.
No I do not, and have not used such a function in VFP since it fell into line with other databases in providing auto-incrementing integers in Version 8.0. I have never used anything other than native generation of PKs in any other database that I have ever worked with.
As for the function from SQL Server it has to be called explicitly - either from a trigger or in code. It is not a database engine function which is the whole point.
> The typical answers for many things are wrong, depending on perspective. Having the server generate PKs takes time. An army of client or middle tier CPUs can generate PKs and free the server up for more important tasks. Further the client or middle tier can produce a complete set of hierarchically related records and the server need do nothing, but store them.
Clearly you see things differently from me and there is no point in continuing this discussion. Your position is that the fact that the engine generates integer PKs is irrelevant, mine is that it is extremely relevant.
Fine, you do it your way and I will do it mine.
Regards
Andy Kramek
Microsoft MVP (Visual FoxPro)
Tightline Computers Inc, Akron Ohio, USA