Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remover Relacionamentos de Tabelas Programaticamente
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01038015
Message ID:
01038480
Views:
13
O COMANDO ALTER TABLE, faz isto. Veja o que diz o Help :
DROP FOREIGN KEY TAG TagName6[SAVE] 


Deletes a foreign key whose index tag is TagName6. You can use SAVE to keep the index tag in the structural index. If you omit SAVE, the index tag is deleted from the structural index. 
Então vc pode usar :
ALTER TABLE MinhaTabela DROP FOREING KEY TAG MinhaTag Save
>Olá Pessoal
>
>Alguém tem idéia de como remover um relacionamento entre tabelas no banco de dados programaticamente. Usando o MODIFY DATABASE sei que é só selecionar a relação e apertar DELETE.
>
>Agradeço desde já
Paulo Cesar Carneiro
desenvolvimento@controplan.com.br


"My God, what have we done?"
-- Capt. Robert Lewis, co-pilot of the Enola Gay, recalling the moment the atomic bomb exploded over Hiroshima

At 8:15 a.m. on August 6 1945
Previous
Reply
Map
View

Click here to load this message in the networking platform