From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-18-2016 05:14 AM
hi,
How do i connect to a remote SQL database using labview,ODBC and the db connectivity toolset.
04-18-2016 07:16 AM
1. Set up ODBC to the correct address and make sure Test connection works.
2. Use the configured ODBC name with Open Database.
/Y
04-18-2016 07:35 AM
UDL is best option.
04-18-2016 08:45 AM - edited 04-18-2016 08:45 AM
There are step by step instructions right in the manual (below). Basically you can set up an ODBC connection on your PC and use its name when you open a connection OR you can send a full connection string right to the DB Tools Open Connection VI. Either way you'll probably need permissions set up by whoever is administering the server (assuming the database is secured).
http://sine.ni.com/psp/app/doc/p/id/psp-360/lang/en
04-18-2016 09:09 AM
04-19-2016 12:32 AM
@Yamaeda wrote:
@Ranjeet_Singh wrote:UDL is best option.
I agree, UDL is better, but that was not the question. 😉
/Y
why not? For connecting to remote database, we can use the UDL
04-19-2016 04:09 AM
yes i tried UDL it work .but i may about how to connect through ODBC.
04-20-2016 05:49 AM
Yes there are other ways but advantage is whenever required, we can change the connection string. Hence we dont need to hardcode it