如何按原样将数据库从 SQL Server 2005 迁移到 2008? [英] How to migrate a database from SQL Server 2005 to 2008 as is?

查看:45
本文介绍了如何按原样将数据库从 SQL Server 2005 迁移到 2008?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想完全或部分迁移数据库.现在,我将做一个完整的数据库.部分将作为单独的问题发布.

I want to migrate a database completely or partially. Right now, I will do a complete database. Partial will be posted as a separate question.

我正在考虑的策略:

  1. 复制数据库向导
  2. 将 2005 数据库转换为脚本.在 2008 上运行脚本
  3. 简单的 SQL 查询

我的问题 - 我想使用方法 2.甚至可以这样做吗?如果是,怎么做?有什么限制/风险吗?

My question - I want to use method 2. Is it even possible to do this? If yes, how to do it? Any limitations/risks ?

注意 - 源服务器是一个具有一个 IP 的 SQL Server 2005 数据库.目标是具有另一个 IP 的 SQL Server 2008 实例.

NOTE - The source server is a SQL Server 2005 database with one IP. Destination is a SQL Server 2008 instance with another IP.

我不知道您是否需要成为系统管理员才能执行此操作.我什至不确定我是否是系统管理员.如果是,那么如何检查我是否是系统管理员?

I don't know if you need to be sysadmin to do this. I am not even sure if I am sysadmin. If yes, then how to check if I am a sysadmin ?

推荐答案

只需 RESTORE 在 SQL2008 服务器上,它就会成为 自动升级.您可以使用 <检查您是否是系统管理员代码>IS_SRVROLEMEMBER.

Just RESTORE it on the SQL2008 server and it will be automatically upgraded. And you can check if you're a sysadmin using IS_SRVROLEMEMBER.

这篇关于如何按原样将数据库从 SQL Server 2005 迁移到 2008?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆