我有一个.csv
带有一列Blob数据类型(来自cassandra)的文件,它是二进制数据。该数据可能非常庞大-远远超过了8000个字节。
我试图DT_BYTES->binary/varbinary
在SQL Server导入向导中设置源数据类型和目标数据类型,但由于出现错误,数据将被截断而失败。
如何导入此类数据?
您需要将列类型设置为varbinary(max)而不是仅将varbinary设置为,这样该列将接受8000多个字节。请参阅以下Microsoft链接。
varbinary [ ( n | max) ]
Variable-length binary data. n can be a value from 1 through 8,000.
max indicates that the maximum storage size is 2^31-1 bytes.
The storage size is the actual length of the data entered + 2 bytes.
The data that is entered can be 0 bytes in length.
The ANSI SQL synonym for varbinary is binary varying.
对于Integration Services数据类型,您可以查看以下链接。您想要的是DT_IMAGE:
DT_IMAGE
A binary value with a maximum size of 231-1 (2,147,483,647) bytes.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句