LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Help on SDL toolkit

I have just installed sql toolkit and I am unable to run the samples of cvi.
Each time i try to do it, the following message:
"function DBConnect automation error code
-2147221164 0x800470154
class unregistered" appears.

Can anyone help me?
thank you best regard
0 Kudos
Message 1 of 2
(3,301 Views)
The error message is telling you that a connection parameter you specified is not available under the database provider your DSN is associated with. The syntax for using DBConnect is:

DBConnect ("DSN=mydatabase[;][optional parameter type = parameter name] [...]");

I would guess that a "class" or type parameter you specified in your connection string is either invalid for your database provider or it is not configured correctly in the ODBC Administrator under Windows. You should consult your database provider's documentation on how to set-up your data source correctly in the administrator and what proper SQL syntax you need to reference it.

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 2 of 2
(3,301 Views)