[英]Restoring SQL Server 2014 database in SQL Server 2005
I am trying to restore a SQL Server 2014 database in SQL Server 2005. I am doing by generating the complete script (with schema and data) from SQL Server 2014. 我正在尝试在SQL Server 2005中恢复SQL Server 2014数据库。我正在通过从SQL Server 2014生成完整脚本(带有架构和数据)来完成。
I get an error saying 我收到一个错误说
'INSERT failed because the following SET options have incorrect settings: 'ANSI_PADDING'.
'INSERT失败,因为以下SET选项的设置不正确:'ANSI_PADDING'。 Verify that SET options are correct for use with indexed views and/or indexes on computed columns and/or query notifications and/or xml data type methods.'
验证SET选项是否正确,以便与计算列和/或查询通知和/或xml数据类型方法的索引视图和/或索引一起使用。
and 和
'Cannot insert explicit value for identity column in table 'T_GASAdminNote' when IDENTITY_INSERT is set to OFF.'
'当IDENTITY_INSERT设置为OFF时,无法在表'T_GASAdminNote'中为标识列插入显式值。
I have searched for solution but have not been able to rectify the problem. 我已经搜索了解决方案,但无法解决问题。 I have tried the solution given in this link , but it didn't help me.
我已尝试过此链接中给出的解决方案,但它对我没有帮助。
Can anyone suggest me some solutions for restoring the database. 任何人都可以建议我一些恢复数据库的解决方案。
Update: sorry - misread your question... 更新:对不起 - 误读了你的问题......
The first error means just that - for some operation you're trying to do, your SET ANSI_PADDING
setting is wrong. 第一个错误意味着 - 对于您尝试执行的某些操作,您的
SET ANSI_PADDING
设置是错误的。 Read the official documentation on ANSI_PADDING on MSDN to learn more about this setting. 阅读MSDN上有关ANSI_PADDING的官方文档,以了解有关此设置的更多信息。 Check what your setting is now - obviously, if that error occurs, you need the other setting for that operation you're attempting to do.
检查您的设置现在是什么 - 显然,如果发生该错误,您需要为您尝试执行的操作设置其他设置。
The second error means that your table T_GASAdminNote
has an identity
column, and you're trying to insert values into that column, but without first enabling this by using SET IDENTITY_INSERT T_GASAdminNote ON
(and don't forget to disable the option after you're done!) 第二个错误意味着您的表
T_GASAdminNote
有一个identity
列,并且您正在尝试将值插入该列,但是没有先通过使用SET IDENTITY_INSERT T_GASAdminNote ON
启用此SET IDENTITY_INSERT T_GASAdminNote ON
(并且不要忘记在您之后禁用该选项完成了!)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.