zoukankan      html  css  js  c++  java
  • SqlServer2005关系图

    前段时间利用备份与恢复的方式,把一个SqlServer2000的数据库移植到Sql2005上,工作一切正常。
    但是,今天想利用Diagram的功能把库里面的表直观地组织一下,竟然发现无法建立,利用PowerDesigner反向功程也没有成功。
    其中,SqlServer错误提示信息如下:
    Microsoft SQL Server Management Studio
    ------------------------------

    Database diagram support objects cannot be installed because this database does not have a valid owner.  To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects.

    -------------------------------

    按照提示信息操作了一下,未见效。

    google了一下,发现有同病相怜者,于是得到解决办法:设置数据库的属性,在[options]中,设置Compatibility Level 为“SQL Server 2005 (90)”。
    Sql2005关系图OK了,PowerDesigner的反向工程也好用了。

    在默认情况下,Sql2005中建立的数据库的Compatibility Level 为2005(90),当利用Sql2000的备份文件进行恢复时,Compatibility Level 为2000(80),于是产生了无法建立关系图,无法用PD进行反向工程的问题,在此记录一下,作为我的第一篇技术文档,希望有help。

    参考链接:http://www.sql-server-performance.com/forum/topic.asp?TOPIC_ID=10946

  • 相关阅读:
    day4
    day3
    day2
    day1
    结对开发
    开课博客
    个人课程总结
    学习进度条-第八周
    学习进度条-第七周
    Fooks 电梯演讲
  • 原文地址:https://www.cnblogs.com/teamleader/p/405582.html
Copyright © 2011-2022 走看看