Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APPEND FROM + Ignorar regras no DBC.
Message
From
26/01/2004 15:41:19
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00870652
Message ID:
00870753
Views:
12
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform