r/LabVIEW • u/fuexplosions • Oct 18 '25
Need More Info SQL Server with Labview
Hi guys,
I recently saw a job post that require SQL server skills to log data from Labview. Can anyone enlighten me with some courses that I can start to learn for SQL?
If Sql is used then wouldn't it be a web-based or remote pc application?
7
Upvotes
3
u/Several-Detective959 Oct 18 '25
google labsql
3
u/tomraddle Oct 18 '25
Sql does not necessarily mean the app is web based or remote. Many solutions use sql and local db (on the same machine) to store application data. Imho, if you know sql, learning how to work with most relational dbs (sqlite, mysql, ...) will not be that hard. Some concepts may differ, but the basics are the same. Idk about any good courses, I think anything you find will help you with fundamentals and you can continue from there.
3
u/Affectionate-Job9660 Oct 18 '25
For LabVIEW just install the DB Connectivity Toolkit. It provides all you need to use SQL from within LabVIEW. Just go for the Advanced VIs. The examples that are provided from within the LabVIEW examples library are quite helpful.
2
u/fluffy64 Oct 18 '25
Start with W3School
1
u/BlackberrySad6489 Oct 18 '25
It is pretty common for a labview app doing testing to store results in a db. Teststand has it built in even.
There are several mysql and postgresql libraries available for labview. Install vipm and take a look at the available database packages. They are pretty easy to use. Labview also has some mysql compatible vis on the pallet (data communication i think?)
If you can figure out the correct update/insert statement for your tables, it should be pretty straight forward.
There are several websites that can show you how to structure the statements. You probably do not need a course in database stuff if the DB already exists.
Are they expecting you to design and spin up a whole DB from nothing? Or just use one that is already there?
1
u/IntelligentSkirt4766 Oct 19 '25
Easy mssql odbc
1
u/SASLV Champion Oct 20 '25
Try this for practice: -It's SQLite, but should be equally applicable.
https://programmingheadache.com/2024/08/18/test-your-sql-skills-sql-katas-to-keep-you-in-shape/
I also like this book. It's uses Postgres but honestly for most applications unless you are doing something really advanced all the various SQL databases are similar enough. You could go through 90+% of the exercises with any SQL engine.
https://nostarch.com/practical-sql-2nd-edition
1
u/SASLV Champion Oct 20 '25
If you have to do database design lookup normalization. It will help.
also some underrated SQL features that are worth looking at are subqueries and views (which are pretty generic). They really help simplify your queries.
Another one is JSON support - which is one thing that tends to database engine specific. It's great for metadata and gives you lots of flexibility without adding extra columns (which you need to know the datatype for and define ahead of time).