Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problema
Message
De
21/01/2002 19:28:14
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00608042
Message ID:
00608143
Vues:
27
Rodolfo veja o código:

CLOSE ALL
CLEAR ALL

BEGIN TRANSACTION

USE CLIENTES IN 0 SHARED ALIAS CLIENTES
=CURSORSETPROP("Buffering" , 3, "CLIENTES")

REPLACE ATIVO WITH 2 IN CLIENTES

=TABLEREVERT(.T.,"CLIENTES")

ROLLBACK

CLOSE ALL
CLEAR ALL

Quando me refiro que não se pode executar Tablerevert() em uma transação, significa, que não é permitido dar esta instrução endtre um BEGIN TRANSACTION e END TRANSACTION/ROLLBACK.
Se vc fizer isto em um formulário ira gerar um erro, mas o exemplo acima com a tabela clientes ( pode ser qq. outra tabela ) funciona. isto é estranho pois o proprio manual informa que não é permitido TABLEREVERT() em uma transação.

Contudo aqui funciona..
poerque ? alguem tem uma explicação ?

[ ], s
Peter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform