Search the Community
Showing results for tags 'connectivity toolkit'.
Found 2 results
Insert NULL value in a SQL Server datetime field
Gepponline posted a topic in LabVIEW GeneralHi, I'm trying to insert some NULL values in a datetime field. In the example, the DATA_INSERIMENTO field has a non empty value and it works correctly but DATA_INTERVENTO doesn't accept NULL. If I use an empty string instead of null, the VI run without any errors but it fill the database field with a 1900-01-01 and it's not what I want. If I use the DB Tools NULL VI it gives me another type of error, maybe 'cause I'm connecting a variant to a cluster of string. If i use a Variant to Data VI for the NULL value it returns an empty string so not the result I need. If use the string you see in the label at the bottom of my diagram in SQL Server manager, it works correctly. How can I obtain the same result with labview?
Database Connectivity Toolkit Multi Row Insert
lisam posted a topic in Database and File IOHi all. I recently got the Database Connectivity Toolkit (DBCT) on LabVIEW 2016 and I'm trying to insert multiple rows into a database. Using a sine signal input I attempted to insert 50 rows in one iteration, but every method I tried returned 50 values in one row. Using the end of line constant and array to spreadsheet string, returned what looked like 50 rows, but when I queried "SELECT COUNT(*) FROM.." the no of rows was equal to the number of iterations. On another forum post, someone suggested it is not possible to insert multiple rows using the DBCT. Can anyone confirm this? I have written some code which allows me to insert 3 rows in one iteration, under a single connection. However, this method is very tedious and wouldn't work for large amounts of data. Can anyone think of a better way to do this? Thanks in advance, Lisa