home *** CD-ROM | disk | FTP | other *** search
- ****************************************************************
- MICROSOFT SQL WORKSTATION 6.0
- OPEN DATA SERVICES ODBC SAMPLE PROGRAM
- ****************************************************************
- This file tells about the Open Data Services ODBC sample
- program included with Microsoft(R) SQL Workstation 6.0. The
- information in this file supplements the information in your
- Microsoft SQL Workstation documentation.
-
- ****************************************************************
- OPEN DATA SERVICES ODBC SAMPLE APPLICATION
-
- The ODSODBC sample gateway driver is described in Appendix E of
- Microsoft Programming Open Data Services. This sample is located by
- default in the C:\SQL60\OPENDS\SAMPLES\ODSODBC directory.
-
- To build the Win32 version of the sample resource DLL for this
- driver, you need the following:
- * Microsoft Visual C++ version 2.1 or later
- * The ODBC Software Development Kit version 2.1 or later
-
- Your LIB and INCLUDE environment variables must point to the
- Visual C++ version 2.1 LIB and INCLUDE directories and to the
- ODBC SDK LIB and INCLUDE directories. Then from the BUILD
- directory type the following:
-
- build
-
- to build the ODSSAMP.DLL file. Instructions on how to create
- a setup directory for your customized gateway driver follow.
-
- For Intel platforms only, to build the Win16 version of the sample
- resource DLL, you need the following:
- * Microsoft Visual C++ version 1.50 or later
- * Microsoft Windows 3.1 Software Development Kit
- * The ODBC Software Development Kit version 2.1 or later
-
- Your LIB and INCLUDE environment variables must point to these
- tools. Then from the BUILD directory type the following:
-
- buildw16
-
- The sample resources DLL included in this directory supports the Open
- Data Services GATEWAY sample application as a pass-through gateway to
- SQL Server 6.0. One additional feature support flag has been added
- beyond those listed in Microsoft Programming Open Data Services:
-
- IDS_FEATURE_UDT_ODS_FORMAT
- If "Y", the driver expects the gateway to send the User Datatype
- field with metadata information as described in Appendix E of
- Microsoft Programming Open Data Services. If "N", the driver
- expects metadata in the SQL Server 6.0 format. The Open Data
- Services GATEWAY sample application shows how to send metadata
- packed in this format in the handle_results function. This
- metadata format is compatible with the DB-Library dbcolinfo
- function.
-
- INSTALLING A CUSTOMIZED GATEWAY DRIVER
-
- 1. Copy the install directory for the ODBC SQL Server driver
- corresponding to the platform you are installing to a new install
- share. For example, if you are building a 32-bit Open Data
- Services gateway driver for Intel, copy the files from D:\I386\ODBC
- (where D: is the SQL Workstation 6.0 CD driver letter) to a new
- directory.
-
- 2. Replace the SQL Server driver file with the ODSGATE driver and
- the resource DLL. For example, for 32-bit, replace SQLSRV32.DLL
- with ODSGT32.DLL (found in C:\SQL60\OPENDS\SAMPLES\ODSODBC\BUILD
- by default) and the resource file you built for your gateway
- (For example, ODSSAMP.DLL).
-
- 3. Replace the DRVSS.HLP file with a new one or remove it.
-
- 4. Change ODBC.INF. The following changes use the sample resource
- DLL:
-
- Under [ODBC Drivers] change:
-
- "SQL Server"=
-
- to:
-
- "ODS Gateway"=
-
- Change [SQL Server] section heading to [ODS Gateway] to match.
-
- Under [ODS Gateway] change:
-
- "Setup"=1,sqlsrv32.dll,,,,1995-05-30,,,,,,,,,,210944,,,,02.50.01.20,
- "Driver"=1,sqlsrv32.dll,,,,1995-05-30,,,,,,,,,,210944,,,,02.50.01.20,
-
- to:
-
- "Setup"=1,odsgt32.dll,,,,1995-05-30,,,,,,,,,,201216,,,,02.50.01.20,
- "Driver"=1,odsgt32.dll,,,,1995-05-30,,,,,,,,,,201216,,,,02.50.01.20,
-
- Add the following line to the [ODS Gateway] section
-
- "Resource"=1,odssamp.dll,,,,1995-05-30,,,,,,,,,,14848,,,,02.50.01.20,
-
- Remove the following line or replace the file name with a help
- file of your own
-
- "Help"=1,drvssrvr.hlp,,,,1995-05-30,,,,,,,,,,116007,,,,02.50.01.20,
-
- The file dates (6th parameter) and file sizes (16th parameter)
- for these lines need to be updated to reflect the actual file
- attributes.
-
- Update the following section on the SQL Server driver with the
- corresponding gateway driver information. Change:
-
- [SQL Server-Keys]
- APILevel=2
- ConnectFunctions=YYY
- DriverODBCVer=02.50
- FileUsage=0
- SQLLevel=1
-
- to:
-
- [ODS Gateway-Keys]
- APILevel=1
- ConnectFunctions=YYN
- DriverODBCVer=02.50
- FileUsage=0
- SQLLevel=1
-
-