How To Connect to a Different Database Using ODBC (130465)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft FoxPro for Windows 2.5
- Microsoft FoxPro for Windows 2.5a
- Microsoft FoxPro for Windows 2.5b
- Microsoft FoxPro for Windows 2.6
- Microsoft FoxPro for Windows 2.6a
- Microsoft Visual FoxPro for Macintosh 3.0b
This article was previously published under Q130465 SUMMARY
When a connection is made to a SQL Server data source, the database in use
will be:
- The one specified in the data source.
-or-
- The default database as defined on the server - if there isn't one
specified in the data source,
The database in use can be changed by using ODBC and executing a USE
command within the SQLEXEC() function. Or if you're using FoxPro version
2.x for Windows, you can use the DBEXEC() function.
The initial database in use can be specified in the data source by going
into the setup of the data source, clicking the Options button, and typing
in the name of the database in the "Database Name" area.
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbhowto kbinterop KB130465 |
---|
|