Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS SQL Server Conection
Message
 
À
02/04/2003 05:36:04
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00772863
Message ID:
00773150
Vues:
8
>how to connect MS SQL Server in VFP 6 with service pack 5.
>& what's the step for that.

As Sergey said, there are different ways to do it, and the book he suggested is a good overview.

The simplest way to read a SQL Server table is to create a ODBC DSN, either in Control Panel or Administrative Tools, depending on what OS you're using. Then, you can use the SQLCONNECT() function to connect to the server, and SQLEXEC() to send the SELECT commands.
*!* Errorchecking omitted here
lnH = SQLCONNECT("MySQLServer")
SQLEXEC(lnH, "USE northwind")
SQLEXEC(lnH, "SELECT * FROM customers")
BROWSE
Then there's Remote Views, ADO, etc... hard to answer your question without knowing what the final destination is.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform