Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLServer- Identifier/ AutoInc value and CA
Message
 
 
To
01/06/2007 13:26:53
Aman Bains
Jaguar Computers
Jalandhar, India
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01229802
Message ID:
01229867
Views:
13
>>That's good, but why the other method didn't work? What exactly was wrong?
>
>I guess the following should tell CA to automatically update the id in the VFP cursor
>
>?"1) Refresh IDENTITY field using [SELECT @@IDENTITY] command"
>oCA.InsertCmdRefreshFieldList="f_IDENTITY"
>oCA.InsertCmdRefreshCmd="SELECT @@IDENTITY"
>
>I did the following in the builder built class
>
>lAutoRefreshNewRecords= .T.
>lUseDefaultRefreshCmd= .F.
>cInsertCmdRefreshFieldList= acbalid
>
>_BuildDefaultRefreshCmd method as
>
>TEXT TO THIS.InsertCmdRefreshCmd TEXTMERGE NOSHOW PRETEXT 10
>	SELECT @@IDENTITY
>ENDTEXT
>
>but I still could not locate the mistake till now.
>Have you tried Mark E. McCasland's builder? then you may have solved the issue.

Check Thread #1100805 Message #1111814 I found a reference to it on another forum
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform