sql server 2005: Value truncation -
My table contains a field password whose size is (70). But when I enter the positive value of the password which is 40, the last few letters become smaller. I am using SQL Server 2005. Why is it like this ??
Only once I've seen this happen when you enter varchar without specifying the length
P>Run it:
Declare @ test varchar (70) set @ test = '1111111111222222222233333333334444444444555555555566666666667777777777' select @stust cast CastedWithoutLength will be only 30 (cast as CastorWith70Length) as CastedWithoutLength, cast cast (@ varchar (40)) CastedWith40Length, cast cast (@ varchar (70)) as long as cast, Whatever the rest of the length Irdharit be.
Comments
Post a Comment