home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / shared / oledb / joltread.txt < prev    next >
Text File  |  1998-07-14  |  7KB  |  93 lines

  1. -----------------------------------------------------------
  2. Microsoft(R) OLE DB Provider for Jet version 3.52 Readme File
  3. -----------------------------------------------------------
  4.  
  5. (c) 1998 Microsoft Corporation. All rights reserved.
  6.  
  7. This document provides late-breaking or other information that supplements the Microsoft OLE DB Provider for Jet documentation.
  8.  
  9. --------
  10. CONTENTS
  11. --------
  12.  
  13. 1. PRODUCT DESCRIPTION
  14.    
  15. 2. NEW FEATURES
  16.    
  17. 3. TECHNICAL NOTES
  18.  
  19. 4. KNOWN BUGS, LIMITATIONS, AND WORKAROUNDS
  20.  
  21. ----------------------
  22. 1. PRODUCT DESCRIPTION
  23. ----------------------
  24. The Microsoft OLE DB Provider for Jet is a native OLE DB provider for data stored in the .mdb file format used by Microsoft Access. With this native OLE DB provider, you no longer have to rely on the Microsoft Access ODBC Driver to read and write data in a Microsoft Access database.
  25.  
  26. ---------------
  27. 2. NEW FEATURES
  28. ---------------
  29. With this release of the Microsoft OLE DB Provider for Jet, you can use ANSI standard syntax with respect to parameter markers in queries. Previous versions of this provider supported only the Microsoft Jet-specific parameter marker syntax consisting of a parameter name enclosed in square brackets, where the parameter name is optional.
  30.  
  31. Example: parameters parm1 text; select * from Table1 WHERE col1 = [parm1];
  32.  
  33. This version of the provider also supports the ANSI syntax, where a question mark, "?", is the parameter marker -- e.g., "...WHERE col1 = ?". 
  34.  
  35. Also with this release of the Microsoft OLE DB Provider for Jet, Jet-specific syntax for wildcards ("*" and "?") has been replaced by ANSI syntax for wildcards ("%" and "_"). For example, consider a query that would return all instances where the data for a column started with the letter "A". Previously, the restriction would have been written "...WHERE col1 LIKE("A*")" but now would be written "...WHERE col1 LIKE("A%")".  Please note that queries using the older, non-ANSI syntax will no longer return the same set of rows.
  36.  
  37. ------------------
  38. 3. TECHNICAL NOTES
  39. ------------------
  40. If you have previously created OLE DB applications to access your Microsoft Access .mdb files, your applications used the Microsoft Access ODBC Driver. However, you may now be able to create more efficient applications with the Microsoft OLE DB Provider for the Microsoft Access Jet database engine. 
  41.  
  42. With the new functionality provided by the Microsoft OLE DB Provider for Jet, you can bypass the Open Database Connectivity (ODBC) layer when accessing your Microsoft Access database files. This means that you do not need to create a Data Source Name (DSN) file, which ODBC uses for mapping data sources to underlying database software. 
  43.  
  44. To connect to a Microsoft Access database, you previously had to create and reference a DSN in your scripts.  For example, the following script establishes a connection with a Microsoft Access database:
  45.  
  46. Set cnnConn = Server.CreateObject("ADODB.Connection")
  47. cnnConn.Open "DSN=PayRollData;UID=SnrAccnt;pwd=Accnt1"
  48.  
  49. However, with the Microsoft OLE DB Provider for Jet, you can directly access your Microsoft Access database files.  The following opens a database connection without referencing a DSN:
  50.  
  51. ADOConnection.Provider = "Microsoft.JET.OLEDB.3.51"
  52. ADOConnection.Properties("user id") = "admin"
  53. ADOConnection.Properties("password") = ""
  54. ADOConnection.Properties("data source") = "d:\payroll\raises.mdb"
  55. ADOConnection.Open
  56.  
  57. Your applications that use the Microsoft Access ODBC Driver will continue to be supported. However, you may choose to convert your existing applications from the Microsoft Access ODBC Driver to the Microsoft OLE DB Provider for Jet.   
  58.  
  59. If you need to access secure databases through the Microsoft OLE DB Provider for Jet, you may have to set additional information to what is listed above.  To specify a database password (as opposed to a user password), you need to set the property "Jet OLEDB:Database Password" on the ADO connection object (as above).  Furthermore, if you need to specify a specific system database, you should use the property "Jet OLEDB:System database".
  60.  
  61. Please note that the default mode for opening databases in the Microsoft OLE DB Provider for Jet is read-write.  If your .mdb file is on a read-only file system, you will get a failure if you try to open the database using the default settings.  You can open these databases only in the read-only mode.
  62.  
  63. -------------------------------------------
  64. 4. KNOWN BUGS, LIMITATIONS, AND WORKAROUNDS
  65. -------------------------------------------
  66. If you choose to convert your applications, you must be aware of the functionality differences between the two providers' access methods.  Specifically, for this release, the Microsoft OLE DB Provider for Jet does not support the following:
  67.  
  68. * The ODBC specified canonical syntax for invoking intrinsic functions.
  69. * Access to databases or files other than native Microsoft Jet databases (e.g., Excel, dBase, Text, etc.) via Microsoft Jet installable ISAMs.
  70. * The ability to create stored queries, sometimes referred to as stored procedures.
  71.  
  72. Installable ISAM Support
  73.  
  74. There is currently no support for accessing data other than native Jet data when using the Microsoft OLE DB Provider for Jet directly.  If it is imperative that you access external data from your application, you can -- and should -- continue to use the Microsoft OLE DB Provider for ODBC data until the next release of the Microsoft OLE DB Provider for Jet data.  This provider will be available with the MDAC 2.1 release.
  75.  
  76. Stored Procedure Support
  77.  
  78. Stored procedures must first be created in Access as Querydefs to be exercised by the Microsoft OLE DB Provider for Jet.  There is no facility to create the stored procedures directly from code for this release.
  79.  
  80.  
  81. The following is a list of Microsoft OLE DB Provider for Jet 3.52 known bugs.
  82.  
  83. IRowsetUpdate::GetOriginalData will fail on a newly inserted row while change is pending.
  84. -----------------------------------------------------------------------------------------
  85. IRowsetUpdate::GetOriginalData will fail on a newly inserted row while the pending change is outstanding. The Jet 3.5 Engine itself will not handle the case where you try to retrieve the original values for newly inserted columns, hence the OLE DB provider cannot support this functionality.
  86.  
  87. Rowset Properties subject to change by JET.
  88. -------------------------------------------
  89. For Jet 3.52, the properties that you set prior to creating a rowset may be altered in order to reflect the actual attributes of the returned rowset for conditions that force a deviation. An example of this would be setting DBPROP_BOOKMARK property to VT_FALSE (along with DBPROPOPTIONS_REQUIRED) using ICommand::SetProperties or IOpenRowset::OpenRowset and then getting back a rowset that actually has bookmarks due to the type of rowset Jet was forced to create. Rather than failing to return a rowset at all, Jet will return it with different properties. 
  90.  
  91. A practical impact of this would be that some OLEDB APIs will return extra information.  For example, IColumnsInfo::GetColumnsInfo might return an unexpected, extra entry for the bookmark column.
  92.  
  93.