Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote Data Access
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00643015
Message ID:
00644649
Vues:
24
>>>I've installed SQL Server on my webserver and I need to access data from
>>>the sql server in my VFP application.
>>
>>You can create a DSN or a ConnectionString that includes the IP address of
>>the webserver instead of the network name.
>
>Can I access VFP Databases similarly??

Yes, but I wouldn't recommend it. SQL Server will do the work on the back end, and only pass back what you need: VFP will try to read the entire table.

That said, I just got this to work:
lnHandle = SQLSTRINGCONNECT("DRIVER=Microsoft Visual FoxPro Driver;SourceType=DBF;SourceDB=\\xxx.xxx.xxx.xxx\fox")
SQLEXEC(lnHandle, "SELECT * FROM Labels")
where I had previously set "fox" as the web directory name for the VFP home directory.

You should probably read Rick Strahl's Internet enabling Visual FoxPro applications for more details.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform