Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to connect to MS SQL server and to MySql
Message
De
03/03/2008 07:36:19
 
 
À
02/03/2008 19:50:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01298076
Message ID:
01298110
Vues:
25
Hi Tony.

>1. Which is the best way to connect
>to MS Sql server in a LAN and process
>data in a database on it?
>
>2. And if it is in a MySQL server in
>a "site"(domain) at the internet, how
>it can be achived?

The nice thing about using ODBC to access a database is that it doesn't matter what database engine you're using or where it's located. You simply connect using a connection string (using the SQLSTRINGCONNECT function) or a data source name (DSN) you create using the Windows Data Source Administrator (using the SQLCONNECT function) and use the various SQL passthrough functions (such as SQLEXEC).

I suggest one of a couple of books by Hentzenwerke Publishing: http://www.hentzenwerke.com/catalog/mysqlvfp.htm and http://www.hentzenwerke.com/catalog/csvfp.htm. Both go into great detail on using ODBC and SQL passthrough and focus on MySQL and SQL Server.

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform