您对无法重新创建的表进行了更改或者启用了“阻止保存要求重新创建表的更改”选项

最近,做设计重新使用了SQL 2008数据库,遇到一些问题。“您对无法重新创建的表进行了更改或者启用了“阻止保存要求重新创建表的更改”选项”

     当用户在在SQL Server 2008企业管理器中更改表结构时,必须要先删除原来的表,然后重新创建新表,才能完成表的更改,麻烦得很。

clip_image001

      查了下资料,找到去掉此提示的一个方法,打开SQL 2008 在最上面 工具-〉选项-〉左侧的 Designer-〉表设计器和数据库设计器 -> 阻止保存要求重新创建表的更改(右侧) 把钩去重新启动2008即可。

      经测试,一切ok

SQL Server 2008可视化设置主键且自增

环境:SQL Server 2008

问题:设置主键和把它设为自增。

解决:点击table->选中表->design->选中需要设置主键的字段,单击右键"设置主键"即可。

若要设置主键自增,在列属性中找到标识规范,单击左边的"+"号,把否改为是,其他默认即可。

摘自 Wentasy

 老师你好我是***,最近有一个问题一直困扰我。就是我启动tomcat的时候有时候会正常启动,有时候会报错。就算是已经正常启动了,重启tomcat有时候也会报错。感觉报错不报错就好像是拼人品一样,报错的地方主要是spring框架,关于这个错误我也去网上了解了不少,大概就是说spring里面还需要在配置一点东西,我试了一些方法,但是问题还是存在。这个问题真是很烦,特别是调试action里面的方法的时候,要是重启几次都不能正常启动影响心情,并且拖慢工作进度,希望老师能给予帮助。
报错代码如下:

信息: Deploying web application directory SSH_phonemark
log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).
log4j:WARN Please initialize the log4j system properly.
2013-12-12 22:37:12 org.apache.catalina.core.ApplicationContext log
信息: Initializing WebApplicationContext for Struts ActionServlet 'action', module ''
2013-12-12 22:37:34 org.apache.catalina.core.ApplicationContext log
严重: action: null
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 6 in XML document from ServletContext resource [/WEB-INF/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)


不知道有没有同学 碰到过类似的问题

前两天 一位同学后来自己解决了问题 他的方法如下

问题的原因是,我配置文件本来是3.0的spring配置文件,但是我导包的时候导成了2.5的包,但是程序有时候最开始的时候可以跑起来,所以我一直以为自己至少框架没搭错。后来报错的时候也有一定几率可以正常运行,然后我去网上找到各种网友的帖子,最后试了很多方法,终于发现在那个applicationContext.xml文件里面把spring-beans-3.0.xsd这里的3.0都改成2.5就再也不报错了。
原文地址:https://www.cnblogs.com/alibabaidu/p/3464519.html