How do I change db schema to dbo

前端 未结 11 2470
无人共我
无人共我 2020-12-02 05:38

I imported a bunch of tables from an old sql server (2000) to my 2008 database. All the imported tables are prefixed with my username, for example: jonathan.MovieData

11条回答
  •  抹茶落季
    2020-12-02 06:07

    Move table from dbo schema to MySchema:

     ALTER SCHEMA MySchema TRANSFER dbo.MyTable
    


    Move table from MySchema to dbo schema:

     ALTER SCHEMA dbo TRANSFER MySchema.MyTable
    

提交回复
热议问题