迁移sqlserver 数据库

上一篇 / 下一篇  2008-05-14 09:27:55 / 个人分类:技术

迁移工作分为两部分:1)技术上的 2)沟通和流程上的

技术部分:

参照了这个帖子:http://fengyu.souidc.org/sqlserver_transfer.htm

安装完sqlserver 后,会有几个缺省库,其中master 库 存贮了login account 信息, 和用户自己创建的一些sp和xp, msdb存贮的job,
在迁移中我们关注的是login, job, user objects in master.

1)Check the database owners of all the databases.
select distinct sysprocesses.DBID,suser_sname(sysprocesses.sid) db_owner
 from sysprocesses,sysdatabases
where sysprocesses.dbid=sysdatabases.dbid

2)Make a list of logins and the permissions they have.  and run on new server
add_login_to_aserver.sql

3)Check the jobs, the job owner and the location of the output files of the job if any.
 you can just script. them (from EM by right clicking on the job and clicking generate script) and run it on the New server which would create the jobs (Recommended method)

4)
Check for any user stored procedures in Master Database, if any, script. them. 
you can just script. them (from EM, right click on the master db, All tasks>Generate sql script. > click 'script. all objects'

5) fix the orphan users.
http://vyaskn.tripod.com/troubleshooting_orphan_users.htm

 

 


 


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2009-01-09  
    123
45678910
11121314151617
18192021222324
25262728293031

数据统计

  • 访问量: 187
  • 日志数: 5
  • 建立时间: 2008-03-21
  • 更新时间: 2008-09-09

RSS订阅

Open Toolbar