home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / sqlsvr / ptk / mips / readme.ods < prev    next >
Encoding:
Text File  |  1995-06-21  |  4.5 KB  |  130 lines

  1. ****************************************************************
  2.                 MICROSOFT SQL WORKSTATION 6.0
  3.             OPEN DATA SERVICES ODBC SAMPLE PROGRAM
  4. ****************************************************************
  5. This file tells about the Open Data Services ODBC sample
  6. program included with Microsoft(R) SQL Workstation 6.0. The
  7. information in this file supplements the information in your 
  8. Microsoft SQL Workstation documentation.
  9.  
  10. ****************************************************************
  11. OPEN DATA SERVICES ODBC SAMPLE APPLICATION
  12.  
  13. The ODSODBC sample gateway driver is described in Appendix E of 
  14. Microsoft Programming Open Data Services. This sample is located by
  15. default in the C:\SQL60\OPENDS\SAMPLES\ODSODBC directory.
  16.  
  17. To build the Win32 version of the sample resource DLL for this
  18. driver, you need the following:
  19. * Microsoft Visual C++ version 2.1 or later
  20. * The ODBC Software Development Kit version 2.1 or later
  21.  
  22. Your LIB and INCLUDE environment variables must point to the
  23. Visual C++ version 2.1 LIB and INCLUDE directories and to the
  24. ODBC SDK LIB and INCLUDE directories. Then from the BUILD
  25. directory type the following:
  26.  
  27.     build
  28.  
  29. to build the ODSSAMP.DLL file. Instructions on how to create
  30. a setup directory for your customized gateway driver follow.
  31.  
  32. For Intel platforms only, to build the Win16 version of the sample
  33. resource DLL, you need the following:
  34. * Microsoft Visual C++ version 1.50 or later
  35. * Microsoft Windows 3.1 Software Development Kit
  36. * The ODBC Software Development Kit version 2.1 or later
  37.  
  38. Your LIB and INCLUDE environment variables must point to these
  39. tools. Then from the BUILD directory type the following:
  40.  
  41.     buildw16
  42.  
  43. The sample resources DLL included in this directory supports the Open
  44. Data Services GATEWAY sample application as a pass-through gateway to
  45. SQL Server 6.0. One additional feature support flag has been added
  46. beyond those listed in Microsoft Programming Open Data Services:
  47.  
  48. IDS_FEATURE_UDT_ODS_FORMAT
  49.     If "Y", the driver expects the gateway to send the User Datatype
  50.     field with metadata information as described in Appendix E of 
  51.     Microsoft Programming Open Data Services. If "N", the driver
  52.     expects metadata in the SQL Server 6.0 format. The Open Data
  53.     Services GATEWAY sample application shows how to send metadata 
  54.     packed in this format in the handle_results function. This
  55.     metadata format is compatible with the DB-Library dbcolinfo
  56.     function.
  57.  
  58. INSTALLING A CUSTOMIZED GATEWAY DRIVER
  59.  
  60. 1. Copy the install directory for the ODBC SQL Server driver 
  61.    corresponding to the platform you are installing to a new install
  62.    share. For example, if you are building a 32-bit Open Data
  63.    Services gateway driver for Intel, copy the files from D:\I386\ODBC
  64.    (where D: is the SQL Workstation 6.0 CD driver letter) to a new
  65.    directory.
  66.  
  67. 2. Replace the SQL Server driver file with the ODSGATE driver and 
  68.    the resource DLL. For example, for 32-bit, replace SQLSRV32.DLL 
  69.    with ODSGT32.DLL (found in C:\SQL60\OPENDS\SAMPLES\ODSODBC\BUILD
  70.    by default) and the resource file you built for your gateway
  71.    (For example, ODSSAMP.DLL).
  72.  
  73. 3. Replace the DRVSS.HLP file with a new one or remove it.
  74.  
  75. 4. Change ODBC.INF. The following changes use the sample resource
  76.    DLL:
  77.  
  78.    Under [ODBC Drivers] change:
  79.  
  80. "SQL Server"=
  81.  
  82.    to:
  83.  
  84. "ODS Gateway"=
  85.  
  86.    Change [SQL Server] section heading to [ODS Gateway] to match.
  87.  
  88.    Under [ODS Gateway] change:
  89.  
  90. "Setup"=1,sqlsrv32.dll,,,,1995-05-30,,,,,,,,,,210944,,,,02.50.01.20,
  91. "Driver"=1,sqlsrv32.dll,,,,1995-05-30,,,,,,,,,,210944,,,,02.50.01.20,
  92.  
  93.    to:
  94.  
  95. "Setup"=1,odsgt32.dll,,,,1995-05-30,,,,,,,,,,201216,,,,02.50.01.20,
  96. "Driver"=1,odsgt32.dll,,,,1995-05-30,,,,,,,,,,201216,,,,02.50.01.20,
  97.  
  98.    Add the following line to the [ODS Gateway] section
  99.  
  100. "Resource"=1,odssamp.dll,,,,1995-05-30,,,,,,,,,,14848,,,,02.50.01.20,
  101.  
  102.    Remove the following line or replace the file name with a help
  103.    file of your own
  104.  
  105. "Help"=1,drvssrvr.hlp,,,,1995-05-30,,,,,,,,,,116007,,,,02.50.01.20,
  106.  
  107.    The file dates (6th parameter) and file sizes (16th parameter)
  108.    for these lines need to be updated to reflect the actual file
  109.    attributes.
  110.  
  111.    Update the following section on the SQL Server driver with the
  112.    corresponding gateway driver information. Change:
  113.  
  114. [SQL Server-Keys]
  115. APILevel=2
  116. ConnectFunctions=YYY
  117. DriverODBCVer=02.50
  118. FileUsage=0
  119. SQLLevel=1
  120.  
  121.    to:
  122.  
  123. [ODS Gateway-Keys]
  124. APILevel=1
  125. ConnectFunctions=YYN
  126. DriverODBCVer=02.50
  127. FileUsage=0
  128. SQLLevel=1
  129.  
  130.