Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL wont overwrite table in DBC
Message
De
20/08/1999 15:57:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00255893
Message ID:
00256046
Vues:
31
>I'm trying to run an SQL into a table with long field names, and fox balks, refusing to overwrite the table.
>
>Is there a way to get SQL to overwrite the table?
>
>I came up with two workarounds:
>
>1) Run the SQL to a cursor, zap the table, and append from the cursor. This means writing the table twice.
>
>2) Open the DBC, look for the table using ADBOBJECTS, close the table if it's open, and drop the table if it's in the DBC. This is not very clean, and DBUSED has been flaky.
>
>Surely I'm not the first person to run an SQL into a DBC. Is there something I'm missing?
>
>Thanks,
>
>-hans

Is there any particular reason you're not using views - either parameterized, or via CREATE SQL VIEW?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform