DECLARE @d1 smalldatetime;SELECT @d1;
DECLARE @v0 float, @v1 char(20), @v2 varbinary(max), @v3 xml, @v4 uniqueidentifier;-- Show default values - NULL for all data typesSELECT @v0, @v1, @v2, @v3, @v4;-- Set to result of implicit conversion of 0 to specified data typeSET @v0 = 0;SET @v1 = 0;SET @v2 = 0;-- Uncomment to get conversion errors--SET @v3 = 0;--SET @v4 = 0;-- Show resultsSELECT @v0, @v1, @v2, @v3, @v4;