From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer results from SQL to Excel sheet

Solved!
Go to solution

Hi Everyone, I am trying to create a VI that saves SQL database for certain table to excel sheet.

I tried to connect the DB results to Write DlimitedSpreatsheet, but it displays broken arrow (Different data type). I attached the VI

I tired using (Variant To Data Function ,Variant to Flattened String, Flatten to String Function, and Flatten To JSON function) to convert data before creating the excel sheet, but it did not work. 

It shows either a broken arrow or unknown characters.

Any suggestions?

Capture.JPG

0 Kudos
Message 1 of 3
(936 Views)
Solution
Accepted by topic author LV2020

Hi,

 

The Data from the Database VI is of the Variant type. You convert this before you can use it to rite to a file.

Here it is coverted to sa 

 
 
 
 

DB Conv.png

 

 

0 Kudos
Message 2 of 3
(898 Views)

Thanks! 

0 Kudos
Message 3 of 3
(870 Views)