Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
APPEND FROM + Ignorar regras no DBC.
Message
De
26/01/2004 15:41:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00870652
Message ID:
00870753
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
Pode fazer que as suas regras sejam dependentes duma variável, por exemplo:
* Funçao trigger chamada do Tavela - Insert
* e armazenada nos stored procedures
if type("plIgnorarRegras") = "L" and plIgnorarRegras
  return
endif
* Continuar aquí com atualizaçao de outras tavelas,
* validaçao, etc.
>Alow! Alow! Alow!
>
>Tenho algumas regras definidas para algumas tabelas dentro do DBC.
>Após definir essas regras, gero um PRG usando o GENDBC.
>Chego no cliente e executo esse PRG e o novo banco de dados incluindo as novas regras estão definidas.
>Após criado, executo APPEND FROM das tabelas "antigas", sem essas regras.
>Acontece que alguns registros não atendem essa nova regra e o VFP acusa um erro nos triggers...
>
>Como eu faço para desabilitar esses triggers (ou ignorar essas regras) momentaneamente?
>
>[]s!
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform