SQL Server 2008数据格式修改时应注意什么?

数据库 SQL Server
此文章主要向大家描述的是SQL Server 2008 在进行数据格式修改之时没有对按钮进行保存的实际情况的破解,以下就是文章的主要内容描述。

我们今天主要向大家讲述的是在对SQL Server 2008 进行数据格式修改之时没有对按钮进行保存的实际情况的解决,同时我们为了更加详细的对其进行讲解,我们已图例演示的方式对其进行说明。

如果你使用的是 SQL Server 2008, 当你修改数据结构后,保存时会报下图情况:

\

Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.

这是 SQL Server 2008 的一种自我保护,当你的修改可能导致数据表被删除并重新创建时(dropped and re-created),就会有这个提醒。

导致表被重新创建可能是以下几种情况:

在表中间添加一个新列;

删除列

更改列为 Null 性

更改列的顺序

更改列的数据类型

若要不使用这个保护,需要在“工具”菜单中单击“选项”,展开“设计器”,然后单击“表设计器和数据库设计器”。 清除“阻止保存要求重新创建表的更改”复选框。

on the Tools menu, click Options, expand Designers, and then click Table and Database Designers. Select or clear the Prevent saving changes that require the table to be re-created check box.

如下图:

\

参考资料:

Save (Not Permitted) Dialog Box

以上的文章主要向大家介绍的是SQL Server 2008数据格式修改时,没有保存按钮的情况解决,望大家会有所收获。

【编辑推荐】

  1. MS SQL Server查询优化方法
  2. MS SQL Server 7.0 性能优化指南
  3. MS SQL Server 7.0 的 SAP R/3 性能优化指南
  4. MS SQL Server和MySQL区别
  5. MS SQL Server 连接字符串的实际操作简介

 

责任编辑:佚名 来源: 互联网
相关推荐

2010-06-18 13:07:57

SQL Server数

2010-07-09 10:27:33

SQL Server数

2011-04-01 15:09:56

Java

2009-09-07 19:02:07

JSON是什么

2009-04-16 18:25:55

2009-07-02 10:14:15

格式化日期SQL Server

2009-02-16 13:21:25

数据挖掘SQL Server SQL Server

2013-03-13 09:53:50

SQL Server

2011-02-21 13:06:42

Microsoft S

2011-08-11 14:23:57

SQL Server 索引分区

2009-03-19 09:30:59

2011-09-07 15:11:31

SQL Server同步

2011-08-01 09:09:07

SQL Server SQL Server 数据库

2009-04-16 17:55:15

扩展热插拔SQL Server

2010-05-13 10:00:10

SQL Server

2009-04-16 16:31:04

数据转化数据集成SQL Server

2013-05-08 10:01:55

SQL Server 数据备份备份与还原

2010-09-16 15:36:26

SQL Server2

2010-07-14 14:07:50

SQL Server

2010-09-13 10:21:26

sql server2
点赞
收藏

51CTO技术栈公众号