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 / oleauto / readme.txt < prev   
Encoding:
Text File  |  1996-04-03  |  3.0 KB  |  77 lines

  1. ****************************************************************
  2.           MICROSOFT SQL SERVER WORKSTATION SYSTEM 6.5
  3.                 OLE AUTOMATION SAMPLE PROGRAMS
  4. ****************************************************************
  5. This file describes the OLE automation sample programs included 
  6. with Microsoft(R) SQL Server(TM) Workstation System 6.5.
  7.  
  8. For additional information about SQL Server 6.5, DB-Library, and 
  9. ODBC, see the "What's New in SQL Server 6.5," "Programming 
  10. DB-Library for Visual Basic," and "Programming ODBC for SQL 
  11. Server" sections of SQL Server Books Online, which containsthe 
  12. most up-to-date information available.
  13.  
  14. ****************************************************************
  15. OLE AUTOMATION SAMPLE APPLICATIONS
  16.  
  17. The sample applications require the Microsoft(R) Visual Basic(R) 4.0 
  18. Enterprise Edition. The following Visual Basic sample programs and 
  19. Transact-SQL scripts are located in the C:\MSSQL\SAMPLES\OLEAUTO 
  20. directory by default:
  21.  
  22. GETNPV
  23. Demonstrates the use of an OLE Automation object to call an NPV 
  24. function in Visual Basic from a trigger. Includes the following 
  25. files:
  26.     CGETNPV.CLS
  27.     GETNPV.VBP
  28.     NPVMAIN.BAS
  29.     NPVTEST.SQL
  30.     NPVTRIG.SQL
  31.     TESTERR.SQL
  32.  
  33. To run this application
  34. 1.  Create the test table and trigger by running the NPVTEST.SQL 
  35.     script.
  36. 2.  Open the Visual Basic project, GETNPV.VBP. From the File Menu 
  37.     choose Make EXE file or Make OLE DLL file to compile GETNPV.VBP.
  38. 3.  Run the script, NPVTEST.SQL to insert sample data into the table. 
  39.     The trigger then fires and calls the Visual Basic NPV function.
  40. 4.  Run the script, TESTERR.SQL, to show an example of the VB 
  41.     function raising a custom error message that can be retrieved by 
  42.     calling sp_OAGetErrorInfo.
  43.  
  44. LOOPBACK.DAO
  45. Demonstrates connecting back to a SQL Server via an OLE Automation
  46. object. The OLE Automation server retrieves a result set from a SQL 
  47. Server table and returns it to the stored procedure that called it. 
  48. In the Visual Basic project, if you make an OLE DLL file, the OA 
  49. server that is created will run in the same process space as SQL 
  50. Server. If you make an EXE file, the OA server will run as a separate 
  51. process. Includes the following files:
  52.     CSQLDAO.CLS
  53.     DAOMAIN.BAS
  54.     LOOPDAO.SQL
  55.     SQLDAO.VBP
  56.  
  57. LOOPBACK.RDO
  58. Demonstrates connecting back to a SQL Server via an OLE Automation
  59. object. The OLE Automation server retrieves a result set from a SQL 
  60. Server table and returns it to the stored procedure that called it. 
  61. In the Visual Basic project, if you make an OLE DLL file, the OA 
  62. server that is created will run in the same process space as SQL 
  63. Server. Ifyou make an EXE file, the OA server will run as a separate 
  64. process. Includes the following files:
  65.     CSQLRDO.CLS
  66.     LOOPRDO.SQL
  67.     RDOMAIN.BAS
  68.     SQLRDO.VBP
  69.  
  70. TRAVERSE
  71. Transact-SQL script that demonstrates how to use traversal syntax 
  72. for object hierarchies. Uses the SQL-DMO administration objects. 
  73. Includes the following file:
  74.     TRAVERSE.SQL
  75.     
  76.     
  77.