02-05-2015 04:58 PM
I created an sql database with sql server 2008 R2. I wish to be able to insert data to this database locally. Can someone please tell me if this can be done, and if it is possible, could someone give me the steps I have to follow?
Thanks.
Solved! Go to Solution.
02-05-2015 06:31 PM
02-05-2015 08:27 PM
Please tell me how can I get this done.
Please give me some sample code or an example I could look at or maybe a website.
Thanks!
02-05-2015 08:34 PM
02-05-2015 10:00 PM
02-05-2015 10:01 PM - edited 02-05-2015 10:02 PM
The way to fix this, is by going to the windows services and starting the sql services that are stopped. this way you will be able to detect the sql server in your computer (I'm using sql server express) in odbc, and then you can connect to the instance in odbc with labview.
The problem I'm having now is that when the application tries to open the database, I receive errorcode -2147467259.
I'm using the database connectivity toolkit.
Can someone please tell me how to fix this error?
Thanks!
02-05-2015 10:44 PM
Not without seeing your code...
Mike...
02-06-2015 09:06 AM
Hey...
As mentioned before;; take a look at Help>>Find Examples and write database.
There are great examples that ship with LabVIEW.
You can also find them in our community... this one may work
Cheers
02-06-2015 10:37 AM
02-06-2015 02:20 PM
I fixed my problem.
The way I fixed it, is by doing the following:
1. start all sql services in windows services
2. navigate to C:\Windows\SysWOW64, and look for odbcad32
3. open this file
4. click on system dsn, click add, and add an sql server
5. fill in all the configuration and select the .sql
The problem I was having was an architecture problem, because I'm using windows 7 x64 and I created the reference in odbc, using the 32 bit odbc.