Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Have two of my favourites been left out ?
Message
De
04/10/2002 09:53:47
 
 
À
04/10/2002 03:56:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00707681
Message ID:
00707744
Vues:
16
>
>SET SQLERRORS TO SQLERROR_OBJECT
>SET SQLCONNECTION TO SQL_CONNECTION
>BEGIN TRANSACTION
> SELECT * FROM CUSTOMER INTO CURSOR LOCAL_CURSOR
> UPDATE CUSTOMER SET CUSTOMER_CODE = 122112
> INSERT INTO CUSTOMER ...
> IF SQLERROR_OBJECT.ERROR_CODE # 0
> ROLLBACK
> ENDIF
>END TRANSACTION
>SET SQLCONNECTION TO [LOCAL]

They didn't go to the above level of embedding support for SQL right into the language. But, you can acomplish the above with a farily simple SQL Pass Thru class. As a mater of fact, there is a pretty decent one in the FFC.

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform