LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Database connect error

Solved!
Go to solution

My system is windows xp, used the labwindows cvi8.5 and sql tool kit, and the data base is access which format is *.mdb. I aleardy setup the connect in ODBC, and running correct in other system, but in the computer couldn't running.

 

As I complier the program which is show the error "

NON-FATAL RUN-TIME ERROR: "databasesample.c", line 22, col 12, thread id 0x00002304: Function DBConnect: (return value == -10 [0xfffffff6]). Native error code -2146824582 0x800a0e7a ADODB.Connection: 找不到提供者。它可能未被正確安裝。"

 

The error message is show the  code : "hdbc = DBConnect("DSN=client");" have some problem.

 

helps for me, thanks.

 

0 Kudos
Message 1 of 7
(5,278 Views)

Hi

Are you referencing the shipping LabWindows/CVI example, or just programmed by your own idea?

Could you please describe more details about how it work on another computer instead of the current one?

 

If possible, run the shipping example first and then we'll find out more details regard the error message.

 

Thank you

0 Kudos
Message 2 of 7
(5,265 Views)

Hi

Thanks first.

 

I also used the example in the sql20 of cvi sql tools which is show the attachment 1.bmp and 2.bmp, but it couldn't exact running.

I am check setup in the ODBC, it should be correct because I used the same setup about the ODBC in another computer.

So, I am very confuse about this problem.

 

thank you help.

 

0 Kudos
Message 3 of 7
(5,248 Views)

Hi

I didn't see any attached image. Could you please post them again?

 

Thanks

0 Kudos
Message 4 of 7
(5,229 Views)

hi,

I am very sorry, I re-upload the picture again.

 

1.bmp

2.bmp

1.bmp

0 Kudos
Message 5 of 7
(5,227 Views)

Hi,

 

Please troubleshoot the error message according to the following document.

http://digital.ni.com/public.nsf/allkb/A23525E4DDABF00B86256A940071D9A6

 

Thank you

0 Kudos
Message 6 of 7
(5,224 Views)
Solution
Accepted by topic author fstmj

Hi,

Thank you help. I already reinstall the operator system,  cvi and sql tools. Then the program is right to running. I think that the problem of sql program is my system error.

0 Kudos
Message 7 of 7
(5,214 Views)