【发布时间】:2018-09-01 02:38:10
【问题描述】:
我知道我可以通过这个过程实现我的目标:
- 创建新列
- 以旧换新
- 扔掉旧的
我正在寻找一种使用一个命令来完成此操作的方法。我知道remane object 在表级别工作。例如,我可以这样做:
rename object Test.danPatient to dimPatient
但是这些都失败并显示各种错误消息:
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
另外,根据this,Azure 数据仓库不支持sp_rename。我使用它的失败尝试表明该网页是准确的。
我在尝试不可能的事情吗?
【问题讨论】:
-
嘿,丹。出于好奇,您为什么要尝试重命名您的专栏?
标签: sql azure azure-sqldw