ACC: Connecting to SYBASE SQL Server from an ODBC ApplicationLast reviewed: May 20, 1997Article ID: Q101073 |
The information in this article applies to:
SUMMARYAdvanced: 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.
MORE INFORMATIONThe 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 Serverwhere <data-source-name> is the name of the data source that you added. There will be a new section called [data-source-name] containing the location of the SQL Server driver and a description of the data source. The [SQLSERVER] section of the WIN.INI will contain the following entry:
data-source-name=<net-library-name>,<network address>The following products are manufactured by vendors independent of Microsoft: DECnet, VMS, and MicroVAX by Digital Equipment Corporation; FTP Software by FTP Software, Inc.; DB-Library, Net-Library, and SYBASE SQL Server by Sybase, Inc.; and UNIX by UNIX System Laboratories. We make no warranty, implied or otherwise, regarding these products' performance or reliability.
REFERENCESFor 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |