DECLARE @a char(1)-- @a is nullSELECT @a = 123select @aReturns *'Asterisk'Changing the source data type to nchar throws an error:DECLARE @a nchar(1)-- @a is nullSELECT @a = 123select @aMsg 8115, Level 16, State 2, Line 3Arithmetic overflow error converting expression to data type nvarchar.DECLARE @a char(1)-- @a is nullSELECT @a = '123'select @aTruncates the result.Database Engine version: 10.0.5500, 10.50.4000
Product Language
Category
Proposed Solution
Primary Benefit
Other Benefits
Virtualization