Even if you miss an error, make the changes.
The question is simple, instead of modifying the table from the designer, I want to do it from a query. I have found how to modify the type, the description ... except the name!
I have tried sp_rename
and do not recognize the tables. Commands like Rename, ... are not supported.
I have no useful code to show, because I have not achieved anything, I just have the table on one side and I want to put new names to the columns.
I could do it by hand, but I'm curious: P
EXEC sp_RENAME 'OOEMSG.OEUSBY', 'aaaaa', 'COLUMN'
The parameter @objname is ambiguous or the value of @objtype (COLUMN) is not correct.