home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / sql / ods / readme.txt < prev   
Encoding:
Text File  |  1996-04-03  |  4.6 KB  |  127 lines

  1. ****************************************************************
  2.           MICROSOFT SQL SERVER WORKSTATION SYSTEM 6.5
  3.               OPEN DATA SERVICES SAMPLE PROGRAMS
  4. ****************************************************************
  5. This file describes the Open Data Services sample programs 
  6. included with Microsoft(R) SQL Server(TM) Workstation System 6.5.
  7.  
  8. For additional information about SQL Server 6.5, Open Data Services,
  9. and ODBC, see the "What's New in SQL Server 6.5," "Programming 
  10. Open Data Services," and "Programming ODBC for SQL Server" sections
  11. of SQL Server Books Online, which contains the most up-to-date 
  12. information available.
  13.  
  14. ****************************************************************
  15. OPEN DATA SERVICES SAMPLE APPLICATIONS
  16.  
  17. The following 32-bit C sample programs are located in the
  18. C:\MSSQL\SAMPLES\ODS directory by default:
  19.  
  20. GATEWAY
  21. Sample C gateway application that connects to SQL Server as an
  22. alternate data source and demonstrates a "pass through" application. 
  23. Includes the following files:
  24.     GATECBS.C
  25.     GATEWAY.C
  26.     GATEWAY.MAK
  27.     GATEWAY.MDP
  28.  
  29. ODSODBC
  30. Builds an Open Data Services gateway version of the SQL Server ODBC 
  31. driver that can be customized for the capabilities of a particular 
  32. Open Data Services gateway application. Documented in Appendix E of 
  33. "Programming Open Data Services." To build a 16-bit version of the
  34. SQL Server ODBC driver, refer to 
  35. C:\MSSQL\SAMPLES\ODS\ODSODBC\README.TXT. Includes the following files:
  36.     BUILDW16.BAT
  37.     LIBMAIN.C
  38.     LOCAL.RC
  39.     MAKEFILE.W16
  40.     ODBCSS.H
  41.     ODBCVER.H
  42.     ODXRC.H
  43.     ODSSAMP.MAK
  44.     ODSSAMP.MDP
  45.     README.TXT
  46.     SAMP.RC    
  47.  
  48. PROCSRV
  49. Demonstrates how to implement a procedure server using Open Data 
  50. Services to handle specific pre-defined requests. Includes the 
  51. following files:
  52.     PROCSRV.C
  53.     PROCSRV.MAK
  54.     PROCSRV.MDP
  55.     SALES.DBF
  56.     SERVICE.C
  57.  
  58. XP
  59. Sample extended procedure DLL built with Open Data Services. The 
  60. functions within the DLL can be invoked by using the extended
  61. stored procedures support in SQL Server.  To register the functions 
  62. and allow all users to use them, run the Transact-SQL script 
  63. INSTXP.SQL. Includes the following files:
  64.     INSTXP.SQL
  65.     XP.C
  66.     XP.DEF
  67.     XP.MAK
  68.     XP.MDP
  69.  
  70. XP_DBLIB
  71. Sample extended stored procedure using 32-bit Visual C++ and the 
  72. DB-Library interface to open a new connection to the SQL Server 
  73. that called the extended stored procedure. Returns a result set and 
  74. passes the results to the client. Uses a bound session for the 
  75. loopback connection.
  76.     XP_DBLIB.C
  77.     XP_DBLIB.DEF
  78.     XP_DBLIB.MAK
  79.     XP_DBLIB.MDP
  80.     XP_DBLIB.SQL
  81.  
  82. XP_ODBC
  83. Sample extended stored procedure using 32-bit Visual C++ and the 
  84. ODBC interface to open a new connection to the SQL Server that 
  85. called the extended stored procedure. Returns a result set and 
  86. passes the results to the client. Uses a bound session for the 
  87. loopback connection. Note: To connect to the server using integrated 
  88. security, the local server data source name (registered using ODBC 
  89. in the Control Panel) must be used. Includes the following 
  90. files:
  91.     XP_ODBC.C
  92.     XP_ODBC.DEF
  93.     XP_ODBC.MAK
  94.     XP_ODBC.MDP
  95.     XP_ODBC.SQL
  96.  
  97. Each project on the Intel(R) platform includes Visual C++ 4.0 
  98. workspace files (.MDP). Double-click the workspace file to load 
  99. the workspace and make file into the Developer Studio environment.
  100.  
  101. Each project also contains cross-platform native Visual C++ 4.0 make 
  102. files (.MAK). For each 32-bit project the .MAK file contains Intel, 
  103. Alpha AXP(R), MIPS(R), and PowerPC(TM) build information. When the 
  104. project is loaded into Developer Studio, pick the appropriate target, 
  105. for example "Example1 - Win32 (ALPHA) Debug", and build it.
  106.  
  107. You can also build from the command line. BUILDALL.BAT, a file that 
  108. will build all of the 32-bit PTK samples, is in the samples 
  109. directory. Use the following syntax: 
  110.  
  111. BUILDALL ({intel | alpha | mips | powerpc} {debug | release} {force})
  112.  
  113. To use these samples with Visual C++ 4.0, you need to ensure that 
  114. your Library and Include directory settings point to your own 
  115. directories. To do this using Developer Studio, from the Tools menu, 
  116. choose Options, then click the Directories tab. From the "Show 
  117. directories for" box, choose Include files and Library files, and 
  118. ensure that these directories (as appropriate) are included:
  119.  
  120.     Include files:            Library files:
  121.     C:\MSSQL\DBLIB\INCLUDE        C:\MSSQL\DBLIB\LIB
  122.     C:\MSSQL\MSDTC\INCLUDE        C:\MSSQL\MSDTC\LIB
  123.     C:\MSSQL\ODBC\INCLUDE        C:\MSSQL\ODS\LIB
  124.     C:\MSSQL\ODS\INCLUDE
  125.     C:\MSSQL\SQLOLE\INCLUDE
  126.  
  127.