LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -2147467259. Data too long for column 'X' at row 1.

I am new to SQL and I get this error when I try to add another row into the SQL database whose width is different that the corresponding element on the previous row.

 

For eg

 

If I enter the string "test" as the an element in the first row, there is no error. However, if I enter "test1" , it throws the following error. I set the data type as string and size to 0( max length for SQL).

Error.JPG

 

Any help is appreciated.

 

Thanks

 

HP

0 Kudos
Message 1 of 2
(2,885 Views)

Stringcol sounds like a number, no? Without seeing your table definition it's hard to say, but most likely the error is correct, you're trying to enter e.g. a 5 byte string into an integer field (which is 4 bytes), or similar.

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 2
(2,872 Views)