[英]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. 我创建了一个数据类型为nvarchar(max)的列,当我填充数据时,它仅包含150个字符,并按如下所述切断其余数据。
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
Alpha;动物健康; NIBR; Nortine Vaconine和诊断最佳;场外交易(OTC);中国制药;制药开发;日本制药;拉康;桑道斯;欧洲制药; Inida制药; APAC
But taking below characters ie 150 characters. 但是采用以下字符,即150个字符。
Alpha;Animal Health;NIBR;Noratine Vaconine and Diagnooptimal;OTC Over the Counter;Pharma China;Pharma Development;Pharma japan;Pharma LaCan;Sandoz;pha
阿尔法;动物健康; NIBR;牛油碱和诊断最佳;场外交易柜台;中国制药;制药开发;日本制药;拉康制药; 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? 如果仅输入150个字符,这是什么原因?如果正确的话,如何允许超过150个字符进入列?
I suppose you are using SQL Management Studio to see the data. 我想您正在使用SQL Management Studio来查看数据。 This is its limitation.
这是它的局限性。 See configuration options.
请参阅配置选项。
Probably SSMS? 可能是SSMS?
Try right click into your query window, open the options, set the "Text" max length to 8192 (maximum allowed here) and re-execute... 尝试右键单击进入查询窗口,打开选项,将“文本”的最大长度设置为8192(此处允许的最大长度),然后重新执行...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.