ACC: Connecting to SYBASE SQL Server from an ODBC ApplicationID: Q101073
|
Advanced: Requires expert coding, interoperability, and multiuser skills.
You can connect to a SYBASE SQL Server computer from an ODBC application
(such as Microsoft Access, Microsoft Visual Basic, or Microsoft FoxPro for
Windows) using the ODBC SQL Server driver. This article describes how to
set up the ODBC data sources.
If you are already connected to SYBASE SQL Server from Microsoft
Windows DB-Library applications, no other components are necessary.
The key to both Microsoft SQL Server and SYBASE SQL Server
connectivity is a module called the Net-Library. This module consists
of two interfaces: one with the network and one with the application.
The network interface is customized to support a particular network;
however, the application interface remains the same.
Because ODBC, DB-Library, APT-SQL, APT-Library, and so forth communicate
with the Net-Library, these utilities can be written independent of
the network. The ODBC SQL Server driver, in particular, can be used to
connect either to a Microsoft SQL Server computer or to a SYBASE SQL
Server computer (on a UNIX or VMS system), as long as there is a
Net-Library for whatever network you are using.
The following paragraphs discuss how to connect to a SYBASE SQL Server
from an ODBC application. The remainder of the article assumes that
you are connected to a SQL Server called "Mysqlsvr." This server
should be set up as an ODBC data source, using the ODBC Control Panel
utility, as follows:
<data-source-name>=SQL Server
data-source-name=<net-library-name>,<network address>
For more information about setting up Microsoft Access to use SQL
databases, see Microsoft Access "User's Guide," version 2.0, Chapter 1,
"Setting Up Microsoft Access," page 8
For more information about installing stored procedures using the Microsoft
Access Help menu, make sure you have set up a SQL Server datasource using
the ODBC Administrator in the Windows Control Panel. Then, search for
"Sybase SQL Server," and then "Installing ODBC Drivers and setting up Data
Sources." In the Installing ODBC Drivers And Setting Up Data Sources Help
window click the "SQL Server Driver" hotlink. In the SQL Server Driver
Help window click the "Installing the Catalog Stored Procedures" hotlink.
Additional query words: third-party
Keywords : kb3rdparty kbusage OdbcOthr
Version : WINDOWS:1.1,2.0,2.5,3.0
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: March 26, 1999