LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Link error while connecting to MS access database

Hello All,
 
I am trying to connect to MS access database using DBConnect("DSN=Proj_DB") call in lab windows/cvi, but i always get this error.
 
 1 Project link error
  Undefined symbol
'_DBConnect@4' referenced in "mySql.c".
 
Can anyone help with this. When i run the sample codes in cvi71/sql20 they run absolutely fine. I do not know why it is not connecting to the db in my project.
 
Thanks in advance
0 Kudos
Message 1 of 2
(3,315 Views)
Hello,

Do you have the DSN configured correctly for your database in the Windows ODBC administrator? You can do this by going to Control Panel -> Administrative Tools -> Data Sources and adding your data source under System DSN tab (you will see "CVI SQL 2.0 Samples" there).

Hope this helps and good luck with your application!

Shakhina P.
Applications Engineer
National Instruments
Message 2 of 2
(3,299 Views)