sql 2005 force table rename that has dependencies

后端 未结 5 1810
一个人的身影
一个人的身影 2020-12-28 14:59

How do you force a rename???

Rename failed for Table \'dbo.x. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+

5条回答
  •  清酒与你
    2020-12-28 15:41

    I had the same issue , my problem was that i has a COMPUTED FIELD using the column i was trying to rename.

    by running the query from the selected answer i was able to tell that had enforced dependencies, but i was not able to see exactly what was the problem

提交回复
热议问题