Change Schema Name Of Table In SQL

后端 未结 10 2255
清歌不尽
清歌不尽 2020-12-04 06:15

I want to change schema name of table Employees in Database. In the current table Employees database schema name is dbo I want to chan

10条回答
  •  抹茶落季
    2020-12-04 06:43

    Be very very careful renaming objects in sql. You can cause dependencies to fail if you are not fully away with what you are doing. Having said that this works easily(too much so) for renaming things provided you have access proper on the environment:

    exec sp_rename 'Nameofobject', 'ReNameofobject'
    

提交回复
热议问题