SQL Server Resize Data type from Integer to Tiny Int -


i have table 10 million records.

two of columns of data type integer.

but 2 columns store values 1 124 only.

the values in column never exceed values of 150.

so need change values "tiny int" data type.

how can safely, , doing able recovery space.

please kindly provide me script , graphical user interface methods please.

in sqlserver can this

alter table dbo.yourtable    alter column yourcolumnname smallint 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -