01-31-2020 03:14 AM
Hi,
I have a labview program that connects to a SQL datenbank. The program works perfectly in one microsoft account which is of another person. But when I go log out of that persons account and then log in to my account and then try to run the program it is showing an error that it cannot connect to the datenbank. Does anyone know what is the problem and if yes what can I do to fix the problem. I have attached two pics of the program. The first pic is the block diagram of the main program and the second pic is the block diagram of the SQL open from the first pic. Kindly do help me. Thank You.
Solved! Go to Solution.
01-31-2020 06:27 AM
Are you connecting to an ODBC database? That should be a system ODBC database, or it won't exist for the other user.
(S)he might not have rights to the database, if this is setup to use Windows credentials...
01-31-2020 08:24 AM
Yes it is an ODBC database. What should I do to have rights to the database. Thank You.
01-31-2020 10:21 AM
@govindsankar wrote:
Yes it is an ODBC database. What should I do to have rights to the database. Thank You.
In the program you use to manage the database.
If you mean SQLServer with "SQL datenbank", then SQLServer.
02-01-2020 06:52 AM
No I dont manage the database. The database and the LabVIEW program was created by someone before me. I am new to the company and right now learning the whole system. The database is used to store the details of testing of their product which is done by a software written in LabVIEW. The software after testing stores the details of the test in the database. But when I log into my Microsoft account and try to run the program it immediately shows cannot connect to the database. Should I make changes in LabVIEW program or the SQL database program. Thanking you.
02-01-2020 11:19 AM
02-01-2020 07:49 PM
Thank you very much. I will do that but i have to learn sql first. Anyway thank you.
02-03-2020 02:34 AM
@govindsankar wrote:
Thank you very much. I will do that but i have to learn sql first. Anyway thank you.
You'll need to learn SQLServer.
SQL is not SQLServer. SQL is the language you talk to an SQL enabled database. SQLServer is an SQL enabled database. SQL is pretty standard; used by Access, MySQL, SQLite, SQLServer. You can even make a .txt file ODBC database, and talk SQL to it.
If you mix SQL and SQLServer, you will confuse people, and get confusing answers on your questions..
02-04-2020 02:52 AM
Thank You very much for the clarification. My programming skills are limited to LabVIEW and MATLAB. My interest and experience is in LabVIEW, so I got a job in that. I guess LabVIEW is not just enough. Thank you again.