06-18-2013 02:24 PM
I am using the Database Connectivity Toolset.
Our IT guys adviced me that I should use the SELECT clause to check if a record exists in a table.
When I send from labview through a UDL file:
SELECT id
FROM [ProdTestData].[dbo].[TestResults]
WHERE MONumber='C00322'
I do not get anything back. See attached.
When the IT guys do the same from their API, they get back a number.
Do I need to add a FETCH or something else to my VI?
Solved! Go to Solution.
06-18-2013 02:46 PM
Try adding DB Tools Fetch Recordset Data.vi between your query VI and the Free VI.
06-18-2013 03:14 PM
That worked.
When i tried this previously, I did not click on "ShowType" in the variant indicator. So I didn't see anything in the variant indicator if the record did not exist.
Thank you.