Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

sql_variant data are truncated

$
0
0

I try to create a new table ‘Table_1’ in SQL Server 2008 and add a field ‘f1’ of type sql_variant, then try to invoke the following SQL statement to insert a value to ‘f1’, as follows:

Insert into [Table_1] values(cast ('0x71FFA0D03B75068C7E8778734DD0BE82BEDBC246412B8CFA307F70F0A754863295AA5B68' as nvarchar))

However, after the insert, I try to open the ‘Table_1’, I find the inserted value is truncated as

‘'0x71FFA0D03B75068C7E8778734DD0’

What is the problem?

Thanks


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>