简体   繁体   中英

NVarchar max datatype having unicode characters

I've created a column which is of datatype nvarchar(max) and while i'm filling with data it's holding only 150 characters and cutting off the remaining data as stated below.

SampleColumn(nvarchar(max),null)

Below is the data i'm inserting into it.

Alpha;Animal Health;NIBR;Noratine Vaconine and Diagnooptimal;OTC Over the Counter;Pharma China;Pharma Development;Pharma japan;Pharma LaCan;Sandoz;pharma europe;pharma inida;pharma apac

But taking below characters ie 150 characters.

Alpha;Animal Health;NIBR;Noratine Vaconine and Diagnooptimal;OTC Over the Counter;Pharma China;Pharma Development;Pharma japan;Pharma LaCan;Sandoz;pha

What could be the reason here by taking only 150 char's, if it's correct how can i allow more than 150 characters into my column?

I suppose you are using SQL Management Studio to see the data. This is its limitation. See configuration options.

Probably SSMS?

Try right click into your query window, open the options, set the "Text" max length to 8192 (maximum allowed here) and re-execute...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM