Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to transactions with Cursoradapters and ms sql
Message
De
20/11/2006 14:48:44
 
 
À
20/11/2006 11:57:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01171075
Message ID:
01171261
Vues:
9
>Hi Aleksey,
>
>I have (example):
>...
>SQLSETPROP(nrucka , 'Transactions', 2) && manual
>IF TXNLEVEL() < 5
> BEGIN TRANSACTION
>ENDIF
>lcSQLStr = 'BEGIN TRANSACTION'
>SqlExec( nrucka,lcSQLStr)
>
>lok = TABLEUPDATE() && lok = .t.
>
>SqlRollback(nrucka)
>ROLLBACK
>
>That's not working.

Don't send BEGIN TRANSACTION to the server when you are using
SQLSETPROP(nrucka , 'Transactions', 2) && manual

If removing it doesn't fix the problem, you'll have to post small, but complete repro code. Complete means - I copy the code into PRG file, change connection string, hit run button and it runs. You should also include description of the expected and actual results.

Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform