Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete from table via CursorAdapter
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01475511
Message ID:
01475518
Vues:
22
>>>Are you trying to delete newly added record or one of the oldest records? Did you trace what is the exact command send to SQL Server?
>>
>>I was trying to delete newly added record. And I checked that the PK and Identify field/column did get the value from the SQL Server table. But I have not yet traced the command send to SQL Server. I should do that. Thanks.
>
>You can also check DeleteCmd in the BeforeDelete method of CA. But I'm thinking - perhaps the problem somehow related with ADO. Did you try deleting one of the oldest records just to see, if this will work? The problem could be related to new records only.
>
>You may also try calling CursorRefresh method after adding new records.

Right now I can't delete any older records since I am working with a production database and don't want to lose any data. But I will try CursorRefresh. And I will look at BeforeDelete. Thanks.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform