在sql server 2005中,如何更改“schema”的表,而不会丢失任何数据? [英] In sql server 2005, how do I change the "schema" of a table without losing any data?

查看:202
本文介绍了在sql server 2005中,如何更改“schema”的表,而不会丢失任何数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表进入db_owner模式,我需要它在dbo模式。



有一个脚本或命令运行

在SQL Server Management Studio中:

    >
  1. 右键单击表格并选择修改(现在称为设计)

  2. 在属性面板上选择正确的所有模式。 >


I have a table that got into the "db_owner" schema, and I need it in the "dbo" schema.

Is there a script or command to run to switch it over?

解决方案

In SQL Server Management Studio:

  1. Right click the table and select modify (it's called "Design" now)
  2. On the properties panel choose the correct owning schema.

这篇关于在sql server 2005中,如何更改“schema”的表,而不会丢失任何数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆