Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69047

DB Tools: SELECT for checking if record exists?

$
0
0

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? 
  
  
  
  
  
  
  
  
  
  
  
 
 
 



Viewing all articles
Browse latest Browse all 69047

Trending Articles