简体   繁体   English

具有Unicode字符的NVarchar max数据类型

[英]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.

相关问题 NVARCHAR(MAX)替换TEXT数据类型? - NVARCHAR(MAX) to replace TEXT datatype? SQL Server如何将这些Unicode字符存储到VARCHAR(MAX)而不是NVARCHAR(MAX)的列中 - How does SQL Server store these Unicode characters into a column that is VARCHAR(MAX) and not NVARCHAR(MAX) nvarchar(MAX)将保留的最大字符数是多少? - What is the maximum number of characters that nvarchar(MAX) will hold? NVARCHAR(MAX)无法容纳50478个字符 - NVARCHAR(MAX) doesn't accommodate 50478 characters 在SQL Server中将文本数据类型更改为nvarchar(max)是否安全? - Is it safe to change text datatype to nvarchar(max) in SQL Server SQL Server在nvarchar字符串中选择Unicode空字符 - SQL Server select unicode null characters in nvarchar strings 无法在 NVARCHAR 字段中存储特定的 Unicode 代码点/字符 - Cannot store particular Unicode code points / characters in NVARCHAR fields SSIS中的0到nvarchar(max)列的MDX查询输出给出了奇怪的字符 - MDX query output in SSIS with 0 to nvarchar(max) column is giving weird characters 将文本从文件导入NVARCHAR(MAX)列; 字符 - Importing text from file into a NVARCHAR(MAX) column; getting � for characters 对于Nvarchar(Max),我只在TSQL中获得4000个字符? - For Nvarchar(Max) I am only getting 4000 characters in TSQL?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM