Hi Peter:
I would like to mention a possible issue with backward compatibility. If
you decide to use the autoincrement field type, you are not going to be
able to access the table using the VFP ODBC driver. You need to use the
VFP OLE DB Provider. This is not a real issue unless you plan on accessing
the table from an application other than VFP 8.0 or later.
I hope this helps.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell
*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/
Purchase VFP8 here:
http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003
Post by PeterI'm trying to convert a SQL Server table which has uniqueidentifier column
into a VFP 9 table. I wonder whether I should use autoincremented field or
write a routine to increment the integer.
Actually there are disadvantages, IMO - personally I still prefer
the older "newID"/default value approach.
GETAUTOINCVALUE() was introduced in Vfp9, so there was
no easy way to get the last value in Vfp7 and Vfp8.
It is still impossible to retrieve a value in advance, for example
when you want to Insert a parent row together with several child
rows at the same time w/o committing the parent row in advance
while data are buffered or in a transaction.
Backwards compatibility might be an issue.
hth
-Stefan
--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------