|
Question : String or binary data would be truncated.
|
|
I have sql stored end exporting result to the excel worksheet. One of the data type in table in sql is ntext (16) and throw following error. So i changed the data type to VARCHAR (8000) and it still throw same error.
error Server: Msg 8152, Level 16, State 4, Line 1 String or binary data would be truncated. The statement has been terminated.
Thanks!
|
|
Answer : String or binary data would be truncated.
|
|
If the cell format is general, then the largest size is 255 characters.
If you need something larger you will need to format the cell to text before you dump the data.
|
|
|
|