Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sp_rename "table", "table_prev"
Recreate the table excluding the column you do not want anymore. Make sure that all rules and defaults are added
Use the command below to copy the data from the original table to the new table.
insert into table
(
col1,
col2,
col3,
....
coln
)
select
col1,
col2,
col3,
....
coln-1
from
table_prev
i.e. exclude the column that you do not want from the insert/select
(You may have to do the above in stages with begin and commit transaction to avoid filling up the transaction log!)
--Create the primary key (if existed before)
--Create the indexes
--Drop and create the triggers on the table
--Update statistics and do a sp_recompile on table
update statistics table
update index statistics table
sp_recompile table