I know I can accomplish my objective with this process:
- Create new column
- Update new from old
- Drop old
I am looking for a way to do this with one command. I know that remane object
works at the table level. For example, I can do this:
rename object Test.danPatient to dimPatient
But these all fail with various error messages:
rename object Test.dimPatient.City to Test.dimPatient.Town
rename object Test.dimPatient.City to Town
rename object DatabaseName.Test.dimPatient.City to Town
rename object DatabaseName.Test.dimPatient.City to DatabaseName.Test.dimPatient.Town
Plus, according to this, sp_rename
is not supported by Azure Data Warehouse. My unsuccessful efforts to use it suggest that the web page is accurate.
Am I attempting the impossible?