I have a SQL Server database and I'd like to change column types to reduce it's size:
I have a string Name
Varchar(100)and want to convert it toVarchar(50)AND I have to move data to it (data will fit intovarchar(50))I have a
Varchar(30)that represents time as epoch time (eg. 1508752574). I want to change the type toDatetimeand convert data formVarchar(30)toDatetimeand then put it inDatetime
Can I do it without losing data?