Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using a SQL Server File DSN from within VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00764428
Message ID:
00764532
Vues:
29
Stu,
sorry I was working on something(imagine that)
here is how you do it:
let say you have this in your file:
DRIVER=SQL server;SERVER=myServer;UID=whaterver;PWD=whatever;DATABASE=mydata;"
now from your program you can:
cStr=filetos('c:\temp\text_file.txt')
lnHandle = SQLSTRINGCONNECT(cStr)
= SQLEXEC(lnHandle,"SELECT * FROM mytable","temp")
= SQLDISCONNECT(lnHandle)
does it help?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform