sql - 32位到64位sql server 2008数据库转换

标签 sql sql-server-2008 32bit-64bit

我们正在将数据库从运行 sql 2005 的旧 32 位硬件迁移到运行 sql 2008 64 位的较新硬件。我的问题是数据库在重新连接到新服务器上后是否会自动转换为 64 位,或者它是否在 64 位实例上以 32 位模式运行。有办法告诉吗?

最佳答案

是的,从 32 位 Windows 升级到 64 位 Windows 时,您可以简单地分离和附加数据库。

我过去做过 x86->x64 转换,没有任何问题。

没有问题,因为 SQL x86 和 x64 的存储层是相同的。

Microsoft says here :

The SQL Server on-disk storage format is the same in the 64-bit and 32-bit environments. Therefore, attach works across 32-bit and 64-bit environments. A database detached from a server instance running in one environment can be attached on a server instance that runs in another environment.



所以回答你的问题,如果你:
  • 在 x64 MS SQL Server 上创建数据库
  • 在 x86 MS SQL Server 上创建数据库并将其移至 x64 MS SQL Server

  • 选项#1 和#2 都会导致相同的最终状态。 x86 数据库和 x64 数据库之间没有这种区别。

    从 2005 年到 2008 年,使用了一种兼容模式。但是对于 x86 到 x64 没有区别。

    关于sql - 32位到64位sql server 2008数据库转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2526375/

    相关文章:

    c# - 将数据从 XML 导入到 SQL Server 表

    sql-server - 获取以逗号分隔且具有相同用户 ID 的数据

    c - 将 m32 标志添加到 Makefile 时 select() 失败

    c# - sql c# 删除 div id 的语法

    sql - 选择两层深的位置

    sql-server-2008 - 如何在 SQL 中使用 ROW_NUMBER() 更新列

    mysql - 在 32 位 Rails 应用程序上将 32 位 PK 更改为 BIGINT

    sql - 重置自动编号种子

    sql-server - 如何在 SQL Server 2008 R2 中检查用户是否具有系统管理员权限