Sayed explains how one could connect from Visual Foxpro to a SQL Server, and the problems related to making this connection.
In Microsoft public newsgroups, I’ve noticed a recent increase in the number of questions that deal with how to connect from Visual Foxpro to SQL Server, and the problems related to making this connection. So I’ve decided to write this article to cover such an important topic. There are two functions that can be used to establish a connection with the a remote SQL Server from Visual FoxPro:- SQLConnect()
- SQLStringConnect()
Option | Description |
DSN | References an ODBC DSN. |
Driver | Specifies the name of the ODBC driver to use. |
Server | Specifies the name of the SQL Server to connect to. |
UID | Specifies the login ID or username. |
PWD | Specifies the password for the given login ID or username. |
Database | Specifies the initial database to connect to. |
APP | Specifies the name of the application making the connection. |
WSID | The name of the workstation making the connection. |
Trusted_Connection | Specifies whether the login is being validated by the Windows NT Domain. |