Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS SQL Server Conection
Message
 
To
02/04/2003 05:36:04
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00772863
Message ID:
00773150
Views:
9
>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform