Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problema con el siguiente consecutivo
Message
From
19/04/2002 11:37:36
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00646072
Message ID:
00646939
Views:
18
>Disculpas Hilmar, te estaba escribiendo un ejemplo de transacciones con SQL y sin querer pulse el 'Enviar', mas o menos seria así:
>
>
>nHandle = SQLCONNECT("odbc_driverSQLServer")
>*-- Setting las transacciones en forma manual
>SQLSETPROP(nHandle, 'Transactions', 2)
>
>BEGIN TRANSACTION
>*-- Codigo...
>
>IF Confirma_Grabar()
>    IF SQLCOMMIT(nHandle) >= 0
>        *-- Grabo Ok.
>        END TRANSACTION	
>    ENDIF
>ELSE
>    SQLROLLBACK(nHandle)
>    ROLLBACK
>ENDIF
>
>
>
>
>Ricardo._

En este codigo, hay alguna base de datos local que tambien se actualiza? pregunto por la inclusion de BEGIN TX / END TX junto con las funciones SQL..()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform