ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Database Toolkit, single character returned

When I run the code below it only returns the first character of the user name.  If I run in SQL manager I get the whole name.

SQL.png

Here is the procedure: 

skh69nova_0-1750111632538.png

 

 

 

0 Kudos
Message 1 of 3
(409 Views)

I haven't used parameters in a while, but my knee-jerk reaction was to change the data type to an array of strings.

jcarmody_0-1750152584217.png

 

Anyway, I was feeling cute; might delete later...

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 3
(366 Views)

As can't post code here is the command that SQL is running.
Not sure why setting to length of 1

skh69nova_0-1750195949634.png

 

0 Kudos
Message 3 of 3
(338 Views)