无法禁用 Vardecimal 存储格式

发布于 2024-09-07 06:53:49 字数 867 浏览 0 评论 0原文

我最近将数据库从“SQL Server 2005 SP1”实例移动到“SQL Server 2008 SP1”(使用分离 - 连接)。我现在需要将其移回,但失败并出现错误:

无法打开数据库“MyDB”,因为它是版本 655。此服务器支持版本 612 及更早版本。不支持降级路径。

经过一番研究后,我相信这与新的数据库选项“Vardecimal Storage Format”有关,该选项已以某种方式为我的所有数据库设置为“ON”。我自己没有设置此选项,但如果我检查 Management Studio (2008) 中的数据库选项,我可以看到我的所有数据库都将其设置为“True”。另外,这个特定选项在用户界面中被禁用,所以我无法将其关闭。

然后我尝试以下方法将其关闭:

exec sp_db_vardecimal_storage_format 'MyDB', 'OFF' go

报告成功,但是当我检查选项时它仍然处于打开状态。

然后我读了这篇非常详细的文章:“http://msdn.microsoft.com /en-us/library/bb508963.aspx”,其中规定了关闭此选项的以下要求:

  1. 确保没有表使用 vardecimal 存储。确认的。
  2. 将恢复模式设置为简单并进行完整备份。我这样做了。

但这也没有任何区别。该选项仍然打开,我无法更改它。

SQL Server 的两个实例都是 Express Edition(无论如何都不应该支持 Vardecimal 存储格式)。

关于如何关闭此选项有什么想法吗?

I recently moved a database from a 'SQL Server 2005 SP1' instance to 'SQL Server 2008 SP1' (using detach - attach). I now need to move it back but it fails with the error:

The database 'MyDB' cannot be opened because it is version 655. This server supports version 612 and earlier. A downgrade path is not supported.

After a bit of research I believe this is related to the new database option 'Vardecimal Storage Format' which has somehow been set ON for all my databases. I did not set this on myself, but if I check the database options in Management Studio (2008) I can see it is set to 'True' for all my databases. Also, this particular option is disabled in the UI, so I cannot turn it off.

I then tried the following to turn it off:

exec sp_db_vardecimal_storage_format 'MyDB', 'OFF'
go

which reported success, but when I check the options it is still ON.

I then read this very detailed article: "http://msdn.microsoft.com/en-us/library/bb508963.aspx" which states the following requirements to turn this option off:

  1. Ensure no tables use vardecimal storage. Confirmed.
  2. Set recovery mode to simple and do full backup. I did this.

But none of this makes any difference either. The option is still on and I can't change it.

Both instances of SQL Server are Express Edition (which isn't supposed to support Vardecimal Storage Format anyway).

Any ideas on how to turn this option off?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

薔薇婲 2024-09-14 06:53:49

vardecimal 是一个转移注意力的东西,因为无论此设置是 true、false 还是不存在,您都无法降级数据库。之前曾被问过:另一个问题再次< /a>

Vardecimal 在 SQL Server 2008 中已被弃用,并已被行/表压缩所取代。

The vardecimal is a red herring because you can't downgrade a database whether this setting is true, false or non-existent. It's been asked before: Another question and again

Vardecimal is deprecated in SQL Server 2008 and has been replaced by compression of rows/tables.

温暖的光 2024-09-14 06:53:49

您可以尝试将数据导出到早期版本的 sql server 的脚本。

You could try exporting your data to a script for an earlier version of sql server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文