LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Database -101 Error

Solved!
Go to solution

I have updated LabWindows from Version 9.1.0 to Version 9.1.1.  On my development computer code complied in both version works fine accessing a network database.  However, on a test computer the code complied in 9.1.1 gives me a -101 Error: DB_COULD_NOT_FIND_FUNC when I execute either

DBInit(DB_INIT_MULTITHREADED) or DBInit (DB_INIT_SINGLETHREADED). 

 

Is there a switch in the installer that needs to be enable to update the database drivers?

Or is there a simpler error?

0 Kudos
Message 1 of 2
(3,487 Views)
Solution
Accepted by topic author Paul_Knight_Lockheed_Mart

Check out the instructions for Distributing an SQL Toolkit Executable or DLL found in the CVI manual.

 

 

Distributing an SQL Toolkit Executable or DLL

The following files must be distributed with an executable or DLL that uses SQL Toolkit functions.

  1. You must use the CVISQLShared.msm merge module to install support for the LabWindows/CVI SQL Toolkit. The CVISQLShared.msm merge module is located in the Program Files\Common Files\Merge Modules directory.
  2. Include the sqldistsupp.exe and sqldistsupp.dsn files when you create a LabWindows/CVI distribution in order to install required database components. Set sqldistsupp.exe as the program to run after installation in the distribution kit.

    The sqldistsupp.exe program, located in the [CVIDIR]\redist directory, creates a system data source name using sqldistsupp.dsn. The sample sqldistsupp.dsn file creates a data source called CVI SQL Samples, which works with the Microsoft Access ODBC driver. You can use [WindowsDirectory], [WindowsSystemDirectory], [CVISQLInstallDirectory], and [AppInstallDirectory] to force sqldistsupp.exe to update paths to the proper values at run time.

    Note Note  [CVISQLInstallDirectory] is actually the directory containing sqldistsupp.exe and is equivalent to [AppInstallDirectory].
    Note Note  The location of [CVIDIR] varies depending on the latest version of LabWindows/CVI you have installed.

    Version [CVIDIR] Folder Location
    LabWindows/CVI not installed National Instruments\Shared\CVI
    LabWindows/CVI 8.1.1 or earlier National Instruments\CVIxx
    LabWindows/CVI 8.5 or later National Instruments\Shared\CVI
National Instruments
0 Kudos
Message 2 of 2
(3,468 Views)