I am just wondering how I can remove a column from a table. I thought it would be alter table (table name) alter column (column name). But it gave me an “Incorrect Syntax” error. Thanks in advance for any help.
Just have to be aware that some of the newer alter commands are non-logged which may invalidate dumps. Since behind the scenes its rebuilding table with select..into type of logic....
Please be aware that alter table drop column is not supported in version before 12 of ASE! You are going to have problems if you use alter table drop column pre v 12!
The safest bet is to rename the current table to <table>_prev. Create a new table in the image of old table without the affected column. Do insert select from the prev table to the new table. Then build primary key, indexes, triggers etc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.