DBTools Readme

LabVIEW Database Connectivity Toolset


Copyright 2001, National Instruments Corporation.

All rights reserved.


DBTOOLS README.RTF file for LabVIEW Database Connectivity Toolset Version 1.0.1 - October 2001


Contents

* System Requirements

* Installation Instructions

* Installed Files

* Uninstallation Information

* Recommended Database Client Software

* Upgrade Notes for Users of the SQL Toolkit for G

* Known Problems

* Additional Information


System Requirements

Your computer must meet the following minimum system requirements to run the Database Connectivity Toolset:


Installation Instructions

Before you install the Database Connectivity Toolset, you should uninstall previous versions of the SQL Toolkit if it is installed in the LabVIEW directory. The Database Connectivity Toolset uses a different method of communicating with databases and mixing VIs between toolkits will result in errors.


Complete the following steps to install the Database Connectivity Toolset:

1. Make sure that LabVIEW is already installed on your system.

2. Insert the LabVIEW Database Connectivity Toolset CD in your CD drive.

3. Follow the instructions on the screen. (You must have administrator privileges to install the Database Connectivity Toolset on computers using Windows NT and Windows 2000.)


Once you complete the onscreen installation instructions, you can use the toolkit.


Installed Files

The Database Connectivity Toolset contains the following material and files:


LabVIEW Database Connectivity Toolset User Manual—The manual is available both in printed form and as a PDF. The DBToolsUM.pdf is located in the LabVIEW 6\manuals directory.


Database Toolset VIs and Examples online help—The online help information for the Database Connectivity Toolset is located in the LabVIEW Help menu.


LabVIEW Database Connectivity Toolset Help, available by selecting Help»Database Connectivity Toolset—This help file contains detailed descriptions of all the VIs, functions, and examples in the Database Connectivity Toolset.


Database directory, located in the LabVIEW 6 directory—This directory contains the MDAC information, a directory called data links for you to place your file DSNs and UDL files into, a build script for making executables or DLLs, and the datatypes.ini file for mapping data types between applications.


Database VI libraries, located in the LabVIEW 6\vi.lib\addons\database directory—These libraries contain the libraries and menus for the Database Connectivity Toolset.


_SQL directory, located in the LabVIEW 6\vi.lib\addons\database directory—These libraries contain the compatibility VIs for the SQL Toolkit.


Database Examples, located in the LabVIEW 6\examples\database directory—This library contains examples of using the Database Connectivity Toolset with the provided Microsoft Access (*.mdb) and data link files (*.udl).


Microsoft MDAC version 2.5, which places its files in the \Program Files\Common Files\ system\ado directory. The MDAC 2.5 installer includes the following components:

ActiveX Data Objects (ADO), OLE-DB and ODBC 3.5.

Microsoft Access Jet Provider

Microsoft SQL Server Provider

This is the English version of MDAC. If you are using a non-English version of Windows, you should perform a custom install and remove MDAC from the installation. You can obtain a localized version of MDAC from Microsoft's web site at http://www.microsoft.com/data/.


NOTE: Please read the MDAC end-user license agreement (LabVIEW 6\database\MDAC\ MDAC_EULA.txt) before building executables or shared libraries using the Database Connectivity Toolset.


* If you install the Database Connectivity Toolset on Windows NT 4.0, you should also install Windows NT 4.0 SP3 or later.


The LabVIEW Database Connectivity Toolset is located on the Functions»Database palette and contains two subpalettes named Utility and Advanced. These palettes give you access to the Database Connectivity Toolset functions and VIs.


Distributing Stand-Alone Applications and DLLs

When you use components from the Database Connectivity Toolset to build a stand-alone application or a DLL with the Application Builder, you must install MDAC to the target computer if it is not already installed along with the appropriate support files. A build script is included in the Database Connectivity Toolset to help you include all these components. Refer to chapter 6 of the Database Connectivity Toolset User Manual for more information.


Uninstallation Information

To uninstall the Database Connectivity Toolset, open the Add/Remove Programs dialog box from the Control Panel. Select NI LabVIEW Database Connectivity Toolset and click Add/Remove.


Recommended Database Client Software

The Database Connectivity Toolset works with any database or data source that has ODBC or OLE DB drivers. The following section describes issues and recommendations for which database client software to use. Please review the Known Problems section in this document for database specific issues.


Microsoft Access - NI recommends that you use the Microsoft Jet 4.0 OLE DB Provider, or a later version.


Microsoft SQL Server - NI recommends that you use the Microsoft OLE DB Provider for SQL Server


Oracle 7 and 8 - You must install Oracle Client software on your system. NI recommends that you use the Oracle Provider for OLE DB 8.1.6.2.0 or later. You can download the Oracle Provider from Oracle's Web site at http://www.oracle.com/. NI does not recommend using the Microsoft OLE DB Provider for Oracle at this time.

Upgrade notes for users of the SQL Toolkit for G

The SQL Toolkit for G is based on one Code Interface Node (CIN) that calls a series of DLLs provided by a third party vendor known as INTERSOLV (now called Merant). These DLLs make system calls into Microsoft's API for database access called ODBC (open database connectivity). The SQL Toolkit is compatible with any database that provided an ODBC driver to translate the ODBC calls to the native database low-level language.


The new LabVIEW Database Connectivity Toolset are built using Microsoft's ADO technology for Universal Data Access. ADO (ActiveX Data Objects) is a thin ActiveX wrapper to OLE DB. Since ADO is an ActiveX interface, it can be automated from LabVIEW. OLE DB is a C++ API that allows for lower-level database access via a COM interface from a C++ compiler. Similar to ODBC, OLE DB needs a way to "translate" information to the database. Thus, an OLE DB provider for a database is needed to translate the OLE DB call to the database's native language.


Since Microsoft branched from ODBC when OLE DB was introduced, a way to join the two standards was needed so users with ODBC interfaces to their database could still program with OLE DB. A special OLE DB provider called OLE DB provider for ODBC (MSDASQL) allows for backward compatibility with ODBC. Therefore, you can use the LabVIEW Database Connectivity Toolset to communicate between LabVIEW and any database that has an OLE DB or ODBC driver.


A library of compatibility VIs is provided with the Database Connectivity Toolset so users of the SQL Toolkit for G can convert their applications to the ADO technology. These compatibility VIs are installed into the LabVIEW\vi.lib\addons\_SQL directory in the same directory and VI library structure used by the SQL Toolkit. VIs with the same names and connectors are provided for most of the SQL Toolkit. However, ADO does not provide all the functionality of the SQL Toolkit. The following VIs were unable to be reproduced in the compatibility VIs using ADO:

Get Column Information

Get Database Information

Get DSN Information

Get Procedure Col Information

Get References

Get Table Information

Get Type Information

Get Column Alias

Get Column Attributes

Get Column Expression

Get Column Width

Request Column Information

Request Database Information

Request DSN Information

Request Procedure Col Information

Request Table Information

Request Type Information

Clear SQL Parameter

Close Fetch Log File

Get Statement Options

Set Statement Options

Get Supported Isolation Levels


Although these functions do not exist in the SQL compatibility VIs, some of the new Database Connectivity Toolset VIs can do similar operations. As with any compatibility VI provided for LabVIEW, you should try to convert applications that use them to use the new methodology. Subsequent releases of the Database Connectivity Toolset may no longer contain the SQL compatibility VIs.


NOTE: When you uninstall the SQL Toolkit for G, some of the ODBC Driver registry entries are removed. To restore these driver entries, run the ODBCRegFix.exe program from the Compatibility directory on the Database Connectivity Toolset installation CD.


Known Problems

* The Database Variant To Data function does not return database NULL values properly in LabVIEW 6.0 or 6.0.1. This function returns the most recent value converted before the NULL value. The Database Variant To Data function should return the default data type for a NULL - empty string for a string, zero for a number, empty array, etc. The problem is fixed in LabVIEW 6.0.2 and you can get the free update from the NI web site at www.ni.com/labview.

* The Microsoft ODBC driver for Oracle and the Microsoft OLE DB Provider for Oracle DO NOT support BLOB (binary) data types. You will not be able to use Oracle with the Database Connectivity Toolset for binary data with these drivers. The workaround is to use the OLE DB Provider (and ODBC driver) provided by Oracle from their web site at: http://technet/oracle.com/tech/nt/ole_db/.


* When reading data from an Oracle database, data types of NUMBER do not show up in the variant indicator. This data is available but not visible. To see NUMBER data, use the Database Variant To Data function to convert the NUMBER to a string or any numeric data type in LabVIEW.


* If the Microsoft Access ODBC driver and Jet Provider return the error "Operation canceled," verify that the ODBC data source and/or data link connection string reference a valid MDB file.


* The Microsoft Jet 4.0 OLE DB Provider and ODBC Driver may return the following error message when two executions attempt to gain write access to the same table.


Native error code -2147467259 0x80004005

Microsoft JET Database Engine:

Could not update; currently locked by user 'Admin' on machine 'XXX'.


This problem occurs if each execution or thread opens a unique connection to the database or unique statements to a table, i.e. they do not share handles. The Microsoft Access drivers use a lazy file access method that can easily cause this error. If this error occurs while accessing a Microsoft Access database from multiple processes or different computers, you must attempt to recover from this error and retry the failing database action.

* There is a problem inserting BLOB data into dBASE databases. It does not work if you are using the OLE DB Provider for ODBC with an ODBC Data Source that points to a dBASE DSN. Refer to the Microsoft KnowledgeBase article: Q264242 for a workaround.


* Asking for a dynamic cursor using the Jet 4.0 OLE DB Provider gives a static cursor that is not quite correctly implemented. This bug is reported to Microsoft.


* Microsoft's FindFast utility sometimes prevents writing to files. This problem results in an Access Denied error message. The workaround is to disable FindFast by removing it from the startup group in the program files menu and rebooting.


* Slow performance has been reported for situations where the entire contents of a large database table are read into LabVIEW. Although it is not recommended that you work with very large recordsets because it is inefficient and uses a large amount of computer resources, you can do so. An example named Read All Data is included in the Database Connectivity Toolset that has been written to return a large amount of table data into a 2D array of strings in the most efficient method ADO provides.

The Read All Data example VI is much faster and uses very few resources to return recordset data, but it also has some limitations because the data format is a 2D array of strings. It is left to the user to convert these strings into the LabVIEW data types that are most useful for displaying that data. Binary data such as arrays and clusters will need to be unflattened or type cast to their original format.


Another limitation of the method used to read data in the Read All Data example VI is that it is unable to read recordsets that contain a NULL value anywhere in the resulting recordset. No data is returned and an error is generated.

* The Database Connectivity Toolset demo (from the Start>>Programs>>National Instruments>>LabVIEW Database Connectivity Toolset>>Database Connectivity Demo or from the LabVIEW>>examples>>database>>Telecommunications Parametric Testing.llb) does not work with the Base Package of LabVIEW because some of the testing VIs use advanced analysis functions only available in the Full and Professional Development Systems. However, the rest of the Database Connectivity Toolset can be used with no problems with the LabVIEW Base Package.


Additional Information

For additional information on the Database Connectivity Toolset refer to the support section of the National Instruments web site at http://www.natinst.com/support/. The web site contains many electronic support services to help you in your development. Some of the databases include:

Developer Zone

Example Programs

Software Library

KnowledgeBase



*** End of DBTOOLS README.RTF ***


Wyszukiwarka

Podobne podstrony:
avr32 gnu toolchain 3 3 0 275 readme
knock knock joke readme
Readme
Readme
readme text
Brutus readme
readme grissom
Readme
readme
readMeFirst
ReadMe (7)
Readme (16)
README
Readme!
Designography ReadMe
GTG MX 08 readme
README
readme