<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 71  文章 - 15  trackbacks - 0
    <2007年10月>
    30123456
    78910111213
    14151617181920
    21222324252627
    28293031123
    45678910

    因為口渴,上帝創造了水;
    因為黑暗,上帝創造了火;
    因為我需要朋友,所以上帝讓你來到我身邊
    Click for Shaanxi xi'an, Shaanxi Forecast
    ╱◥█◣
      |田|田|
    ╬╬╬╬╬╬╬╬╬╬╬
    If only I have such a house!
    〖總在爬山 所以艱辛〗
    Email:myesjoy@yahoo.com.cn
    NickName:yesjoy
    MSN:myesjoy@hotmail.com
    QQ:150230516

    〖總在尋夢 所以苦痛〗

    常用鏈接

    留言簿(3)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    Hibernate在線

    Java友情

    Java認證

    linux經典

    OA系統

    Spring在線

    Structs在線

    專家專欄

    企業信息化

    大型設備共享系統

    工作流

    工作流產品

    網上購書

    搜索

    •  

    最新評論

    閱讀排行榜

    評論排行榜

    1、安裝PD v11.0版

    2、由pdm生成建表腳本時,字段超過15字符就發生錯誤(oracle)
    原因未知,解決辦法是打開PDM后,會出現Database的菜單欄,進入Database - Edit Current DBMS -script-objects-column-maxlen,把value值調大(原為30),比如改成60。出現表或者其它對象的長度也有這種錯誤的話都可以選擇對應的objects照此種方法更改!
    或者使用下面的這種方法:
    生成建表腳本時會彈出Database generation提示框:把options - check model的小勾給去掉,就是不進行檢查(不推薦)!
    或者可以修改C:\Program Files\Sybase\PowerDesigner Trial 11\Resource Files\DBMS\oracl9i2.xdb文件
    修改好后,再cdm轉為pdm時,選擇“Copy the DBMS definition in model”把把這個資源文件拷貝到模型中。

    3、生成的建表腳本中如何把對象的雙引號去掉?
    打開cdm的情況下,進入Tools-Model Options-Naming Convention,把Name和Code的標簽的Charcter case選項設置成Uppercase或者Lowercase,只要不是Mixed Case就行!
    或者選擇Database->Edit current database->Script->Sql->Format,有一項CaseSensitivityUsingQuote,它的comment為“Determines if the case sensitivity for identifiers is managed using double quotes”,表示是否適用雙引號來規定標識符的大小寫,可以看到右邊的values默認值為“YES”,改為“No”即可!
    或者在打開pdm的情況下,進入Tools-Model Options-Naming Convention,把Name和Code的標簽的Charcter case選項設置成Uppercase就可以!

    4、建立一個表后,為何檢測出現Existence of index的警告
    A table should contain at least one column, one index, one key, and one reference.
    可以不檢查 Existence of index 這項,也就沒有這個警告錯誤了!
    意思是說沒有給表建立索引,而一個表一般至少要有一個索引,這是一個警告,不用管也沒有關系!

    5、創建一個表在修改字段的時候,一修改name的內容,code也跟著變化,如何讓code不隨著name變化
    Name和Code 的右側都有一個按鈕“=”,如果需要不同步的話,把這個按鈕彈起來就可以了。
    Tools->General Options->Dialog->Name to Code Mirroring (去掉)

    6、由CDM生成PDM時,自動生成的外鍵的重命名
    PDM Generation Options->Detail->FK index names默認是%REFR%_FK,改為FK_%REFRCODE%,其中%REFRCODE%指的就是CDM中Relationship的code!另外自動生成的父字段的規則是PDM Generation Options->Detail->FK column name template中設置的,默認是%.3:PARENT%_%COLUMN%,可以改為Par%COLUMN%表示是父字段!

    7、如何防止一對一的關系生成兩個引用(外鍵)
    要定義關系的支配方向,占支配地位的實體(有D標志)變為父表。
    在cdm中雙擊一對一關系->Detail->Dominant role選擇支配關系

    8、修改報表模板中一些術語的定義
    即文件:C:\Program Files\Sybase\PowerDesigner Trial 11\Resource Files\Report Languages\Chinese.xrl
    Tools-Resources-Report Languages-選擇Chinese-單擊Properties或雙擊目標
    修改某些對象的名稱:Object Attributes\Physical Data Model\Column\
            ForeignKey:外鍵
            Mandatory:為空
            Primary:主鍵
            Table:表
    用查找替換,把“表格”替換成“表”
    修改顯示的內容為別的:Values Mapping\Lists\Standard,添加TRUE的轉化列為是,FALSE的轉化列為空
    另外Report-Title Page里可以設置標題信息

    9、PowerDesigner11中批量根據對象的name生成comment的腳本

    '******************************************************************************
    '* File:     name2comment.vbs
    '* Purpose:  Database generation cannot use object names anymore
    '            in version 7 and above.
    '            It always uses the object codes.
    '
    '            In case the object codes are not aligned with your
    '            object names in your model, this script will copy
    '            the object Name onto the object comment for
    '            the Tables and Columns.
    '
    '* Title:    把對象name拷入comment屬性中
    '* Version:  1.0
    '* Author:wangnc
    '* 執行方法:PD11 -- Open PDM -- Tools --  Execute Commands -- Run Script
    '******************************************************************************

    Option Explicit
    ValidationMode = True
    InteractiveMode = im_Batch

    Dim mdl ' the current model

    ' get the current active model
    Set mdl = ActiveModel
    If (mdl Is Nothing) Then
       MsgBox "There is no current Model"
    ElseIf Not mdl.IsKindOf(PdPDM.cls_Model) Then
       MsgBox "The current model is not an Physical Data model."
    Else
       ProcessFolder mdl
    End If

    ' This routine copy name into code for each table, each column and each view
    ' of the current folder
    Private sub ProcessFolder(folder)
       Dim Tab 'running  table
       for each Tab in folder.tables
          if not tab.isShortcut then
             tab.comment = tab.name
             Dim col ' running column
             for each col in tab.columns
                col.comment= col.name
             next
          end if
       next

       Dim view 'running view
       for each view in folder.Views
          if not view.isShortcut then
             view.comment = view.name
          end if
       next

       ' go into the sub-packages
       Dim f ' running folder
       For Each f In folder.Packages
          if not f.IsShortcut then
             ProcessFolder f
          end if
       Next
    end sub


    轉自:http://blog.csdn.net/edeed/archive/2006/02/10/596271.aspx
    posted on 2007-06-11 15:54 ★yesjoy★ 閱讀(500) 評論(1)  編輯  收藏 所屬分類: PowerDesigner設計

    FeedBack:
    # re: PowerDesigner11學習點滴  2007-10-31 16:45 彭俊
    非常有幫助,謝謝  回復  更多評論
      
    主站蜘蛛池模板: 亚洲系列国产精品制服丝袜第| 亚洲国产精品丝袜在线观看| 国产精品一区二区三区免费| 本免费AV无码专区一区| 免费观看黄色的网站| 亚洲成av人影院| 久久青草免费91线频观看不卡| 最近免费中文字幕视频高清在线看| 97久久精品亚洲中文字幕无码| 蜜桃传媒一区二区亚洲AV| 在线观看免费无码专区| 久久精品国产亚洲网站| 99视频在线免费看| 亚洲乱码一二三四区国产| a级毛片毛片免费观看永久| 亚洲中文字幕无码中文字在线| 99久久国产精品免费一区二区| 久久精品亚洲中文字幕无码网站| 99精品在线免费观看| 亚洲一区二区三区写真| 久久国产精品一区免费下载| 亚洲日本在线播放| 日本无卡码免费一区二区三区| 亚洲一区二区在线视频| 成在人线av无码免费高潮水| 亚洲AV乱码一区二区三区林ゆな | 污视频在线观看免费| 中文字幕亚洲乱码熟女一区二区| 日韩免费高清播放器| 亚洲中文字幕久在线| 久久伊人免费视频| 99999久久久久久亚洲| 亚洲国产精品毛片av不卡在线 | 国产免费伦精品一区二区三区| 国产精品四虎在线观看免费| 国产乱子伦精品免费视频| 亚洲国产精品成人综合久久久 | 女人18一级毛片免费观看| 激情五月亚洲色图| 亚洲性久久久影院| 一级成人生活片免费看|