LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I create a DSN for the SQL toolkit

Is there some document that describes all of the steps to create a DSN so I can connect to a database via the LabVIEW SQL toolkit? Thanks
0 Kudos
Message 1 of 4
(3,244 Views)
Mark,

See attached file. It was acquired from NI by someone at my company. I added a couple of the inputs to increase the flexibility.

A tip to using it. I put a variable '1stBoot' in my program's ini file and if its true this code will run. If DSN gets setup with no errors, i change the value of '1stBoot' to false.

Have fun,
Jared
0 Kudos
Message 2 of 4
(3,244 Views)
I'm not sure this VI will work with a SQL Server DSN. I always just use the ODBC Data Source Administrator. The thing to remember is that every database could be a little different. Some Access databases require a system database (.mdw file) and others don't. Some SQL Server databases have Windows NT authentication of user ID and some use SQL Server itself for the authentication. The person who designed the database should be the best reference in deciding between all of the options.
0 Kudos
Message 4 of 4
(3,244 Views)
Mark,

I forgot to tell you, its saved as a 6.0 file. If you need 5.1, i can do a save as last version for you. Just email me if you need the earlier version.

Jared
0 Kudos
Message 3 of 4
(3,244 Views)