LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do read/write records from a SQL server hosted on the Web?

Solved!
Go to solution

If I have a MS SQL  Server hosted on the internet, how can I use Labview to access it? Examples appreciated.

 

TIA,

Les 

0 Kudos
Message 1 of 8
(3,613 Views)

Have you tried searching the forums for SQL?

Or the example finder in LabVIEW?

0 Kudos
Message 2 of 8
(3,596 Views)

See if this thread is useful.

 

Regards

0 Kudos
Message 3 of 8
(3,582 Views)

I have a web-hosted MySQL database.  I set up an ODBC data source (Windows) and use a UDL file and am able to connect just as easily as I can an Access database on my PC.

 

Message Edited by jcarmody on 04-23-2009 09:12 AM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 4 of 8
(3,569 Views)

You can use ODBC, though I have found that it is more convinient to use a connection string...that way you don't have to set up the ODBC connection on every computer you want to use the application on.

 

You will also have to have your database server set up to allow outside connections, as I beleive ms sql only allows connections from localhost by default.

 

Not sure if you need specific examples on how to talk to a database, but, as suggested, a search should yeild many results.

Message Edited by ctardi on 04-23-2009 08:44 AM
Message 5 of 8
(3,556 Views)

Thanks for that. So am I to understand that the database tools will construct the required http strings the post and retrieve data?

 

TIA

Les 

0 Kudos
Message 6 of 8
(3,551 Views)
Solution
Accepted by topic author mastaflash
Yup, just provide the connection string and they query, and the database tools take care of the rest.
Message 7 of 8
(3,547 Views)

Check out the product page for NI LabVIEW Database Connectivity Toolkit to learn more and feel free to post any additional questions you have.

Edit: The LabVIEW Database Connectivity Toolkit is now only sold as part of LabVIEW Professional.

Misha
0 Kudos
Message 8 of 8
(3,534 Views)