Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to run an sql script file?
Message
De
19/05/2001 22:41:05
 
 
À
19/05/2001 20:28:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00509146
Message ID:
00509158
Vues:
21
>I was wandering if I can run an sql script file into VFP. I have an sql script file for to create a database, (create table.......,etc.). Sql statements in the file are SQL ANSI-92 compliant. Is there any way for to do that???


You can use SQL Pass-Through in VFP like so:
nHandle = SQLCONNECT("Pubs")  && use DSN or OleDB connect string
SQLEXEC(nHandle,"create table MyTable (MyFirstField char (20))")


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform