LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting Database Entries With Write Only Privilages

I have the NI database tool kit and I'm trying to post data to a database where I have write-only privilages. The list tables vi appears to work, however, the list columns vi errors out. The DB tools insert data vi also errors out without posting data. A program written in .net is able to post data to this database, is there a way to do so using LabView?  Note: We only have 2009 so cannot read later examples.

0 Kudos
Message 1 of 9
(3,122 Views)

Hi!

Can you post the VI sending the data to the DB (or only the relevant part of the vi)?

 

Marco

0 Kudos
Message 2 of 9
(3,102 Views)

DB tools insert data.vi is part of the database connectivity tool kit. The vi works for databases that I have read access to but not ones that I have write only access to. It is the internal get properties vi where the error flag is being set.

0 Kudos
Message 3 of 9
(3,098 Views)

If I'm not mistaken "get properties" is executed only if "autodetect parameters" is enabled.

Is this your case?

 

Hope it helps,

Marco

0 Kudos
Message 4 of 9
(3,095 Views)

I don't see any reference to an autodetect anywhere?

0 Kudos
Message 5 of 9
(3,091 Views)

To check if something is wrong you could also use the "database insert.vi" provided with Labview examples.

It lets you execute in no-time a SQL command without any request of parameters.

 

Marco

 

0 Kudos
Message 6 of 9
(3,090 Views)

I took a look at that example, but don't know how to corelate the "device name" and "parameters" fields to a table and column.

0 Kudos
Message 7 of 9
(3,084 Views)

The example also calls Create Parameterized Query which calls a get properties as the first action.

0 Kudos
Message 8 of 9
(3,083 Views)

In the "Database Insert.vi" example if you select the tab "SQL Query" there will be no call of "Create Parameterized Query".

 

Regards,

Marco

0 Kudos
Message 9 of 9
(3,080 Views)