锘??xml version="1.0" encoding="utf-8" standalone="yes"?>精品免费国产一区二区三区四区,www.亚洲免费视频,а天堂8中文最新版在线官网http://www.aygfsteel.com/conans/category/32438.html浣犺秺鎸f墡鎴戝氨瓚婂叴濂?/description>zh-cnSat, 21 Jun 2008 00:05:00 GMTSat, 21 Jun 2008 00:05:00 GMT60powerDesigner浣跨敤鎶宸?杞?http://www.aygfsteel.com/conans/articles/209601.htmlCONANCONANFri, 20 Jun 2008 15:13:00 GMThttp://www.aygfsteel.com/conans/articles/209601.html
--------------------------------------------------------------------------------------------------
sql璇彞涓〃鍚嶄笌瀛楁鍚嶅墠鐨勫紩鍙峰幓闄わ細
鎵撳紑cdm鐨勬儏鍐典笅錛岃繘鍏ools錛峂odel Options錛峃aming Convention錛屾妸Name鍜孋ode鐨勬爣絳劇殑Charcter case閫夐」璁劇疆鎴怳ppercase鎴栬匧owercase錛屽彧瑕佷笉鏄疢ixed Case灝辮錛?br />
鎴栬呴夋嫨Database->Edit current database->Script->Sql->Format錛屾湁涓欏笴aseSensitivityUsingQuote錛屽畠鐨?comment涓?#8220;Determines if the case sensitivity for identifiers is managed using double quotes”錛岃〃紺烘槸鍚﹂傜敤鍙屽紩鍙鋒潵瑙勫畾鏍囪瘑絎︾殑澶у皬鍐欙紝 鍙互鐪嬪埌鍙寵竟鐨剉alues榛樿鍊間負“YES”,鏀逛負“No”鍗沖彲錛?br />
鎴栬呭湪鎵撳紑pdm鐨勬儏鍐典笅錛岃繘鍏ools錛峂odel Options錛峃aming Convention錛屾妸Name鍜孋ode鐨勬爣絳劇殑Charcter case閫夐」璁劇疆鎴怳ppercase灝卞彲浠ワ紒
鍦ㄤ慨鏀筺ame鐨勬椂鍊欙紝code鐨勫煎皢璺熺潃鍙樺姩錛屽緢涓嶆柟渚?br />
淇敼鏂規(guī)硶錛歅owerDesign涓殑閫夐」鑿滃崟閲屼慨鏀癸紝鍦╗Tool]-->[General Options]->[Dialog]->[Operating modes]->[Name to Code mirroring],榪欓噷榛樿鏄鍚嶇О鍜屼唬鐮佸悓姝ワ紝灝嗗墠闈㈢殑澶嶉夋鍘繪帀灝辮浜嗐?br />
鐢眕dm鐢熸垚寤鴻〃鑴氭湰鏃訛紝瀛楁瓚呰繃15瀛楃灝卞彂鐢熼敊璇紙oracle錛?br />
鍘熷洜鏈煡錛岃В鍐沖姙娉曟槸鎵撳紑PDM鍚庯紝浼氬嚭鐜癉atabase鐨勮彍鍗曟爮錛岃繘鍏atabase 錛?Edit Current DBMS 錛峴cript錛峯bjects錛峜olumn錛峬axlen錛屾妸value鍊艱皟澶?鍘熶負30)錛屾瘮濡傛敼鎴?0銆傚嚭鐜拌〃鎴栬呭叾瀹冨璞$殑闀垮害涔熸湁榪欑閿欒鐨勮瘽閮藉彲浠ラ夋嫨瀵瑰簲鐨刼bjects鐓ф縐嶆柟娉曟洿鏀癸紒
鎴栬呬嬌鐢ㄤ笅闈㈢殑榪欑鏂規(guī)硶錛?br />
鐢熸垚寤鴻〃鑴氭湰鏃朵細寮瑰嚭Database generation鎻愮ず妗嗭細鎶妎ptions 錛?check model鐨勫皬鍕劇粰鍘繪帀錛屽氨鏄笉榪涜媯鏌ワ紙涓嶆帹鑽愶級錛?br />
鎴栬呭彲浠ヤ慨鏀笴:\Program Files\Sybase\PowerDesigner Trial 11\Resource Files\DBMS\oracl9i2.xdb鏂囦歡
淇敼濂藉悗錛屽啀cdm杞負pdm鏃訛紝閫夋嫨“Copy the DBMS definition in model”鎶婃妸榪欎釜璧勬簮鏂囦歡鎷瘋礉鍒版ā鍨嬩腑銆?br />
鐢盋DM鐢熸垚PDM鏃訛紝鑷姩鐢熸垚鐨勫閿殑閲嶅懡鍚?br />
PDM Generation Options->Detail->FK index names榛樿鏄?REFR%_FK錛屾敼涓篎K_%REFRCODE%錛屽叾涓?REFRCODE%鎸囩殑灝辨槸CDM涓璕elationship鐨刢ode錛佸彟澶栬嚜鍔ㄧ敓鎴愮殑鐖跺瓧孌電殑瑙勫垯鏄疨DM Generation Options->Detail->FK column name template涓緗殑錛岄粯璁ゆ槸%.3:PARENT%_%COLUMN%錛屽彲浠ユ敼涓篜ar%COLUMN%琛ㄧず鏄埗瀛楁錛?br />
寤虹珛涓涓〃鍚?涓轟綍媯嫻嬪嚭鐜癊xistence of index鐨勮鍛?br />
A table should contain at least one column, one index, one key, and one reference.
鍙互涓嶆鏌?Existence of index 榪欓」錛屼篃灝辨病鏈夎繖涓鍛婇敊璇簡錛?br />
鎰忔濇槸璇存病鏈夌粰琛ㄥ緩绔嬬儲寮曪紝鑰屼竴涓〃涓鑸嚦灝戣鏈変竴涓儲寮曪紝榪欐槸涓涓鍛婏紝涓嶇敤綆′篃娌℃湁鍏崇郴錛?br />
PowerDesigner11涓壒閲忔牴鎹璞$殑name鐢熸垚comment鐨勮剼鏈?br />
'******************************************************************************
'* 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: 鎶婂璞ame鎷峰叆comment灞炴т腑
'* Version: 1.0
'* Author錛?br />
'* 鎵ц鏂規(guī)硶錛歅D11 -- Open PDM -- Tools -- Execute Commands -- Run Script
'******************************************************************************
' 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
PowerDesigner 鐢熸垚SQL鐨凟xistence of refernce閿欒闂
鐜拌薄錛氱敤PowerDesigner鐢熸垚SQL璇彞鏃訛紝鎻愮ずExistence of refernce閿欒銆?br />
鍘熷洜錛氳琛ㄦ病鏈変笌鍏朵粬琛ㄧ殑鍏寵仈(濡傚閿瓑錛夛紝鑰孭owerDesigner闇瑕佸瓨鍦ㄤ竴涓猺efernce鎵嶈兘鐢熸垚SQL.
瑙e喅鏂規(guī)硶錛?br />
鍦ㄥ伐鍏鋒爮絀虹櫧澶勫彸閿墦寮Palette闈㈡澘錛岄変腑Link/Extended Dependency 鎸夐挳錛岀劧鍚庡湪鎻愮ず鍑洪敊鐨勮〃涓婃坊鍔犲埌鑷繁鐨凞ependency銆?br />
閲嶆柊鐢熸垚SQL,浣犲皢鍙戠幇鍒氭墠鎻愮ず鐨勯敊璇病鏈変簡錛岄棶棰樿В鍐熾?br />
鍒╃敤PowerDesigner鎵歸噺鐢熸垚嫻嬭瘯鏁版嵁
涓昏瑙e喅鏂規(guī)硶:
A:鍦≒owerDesigner 寤鴻〃
B:鐒跺悗緇欐瘡涓涓〃鐨勫瓧孌靛緩绔嬬浉搴旂殑鎽樿鏂囦歡
姝ラ濡備笅:
Model->Test Data Profiles閰嶇疆姣忎竴涓瓧孌墊憳瑕佹枃浠禛eneral:杈撳叆Name銆丆ode銆?br />
閫夋嫨Class(鏁板瓧銆佸瓧絎︺佹椂闂?綾誨瀷
閫夋嫨Generation Source錛?Automatic銆丩ist銆丱DBC銆丗ile Detail:閰嶇疆瀛楁鐩稿叧淇℃伅
鎵鏈夊瓧孌墊憳瑕佹枃浠墮厤緗畬鎴愬悗鍙屽嚮璇ヨ〃->閫夋嫨瀛楁->Detail->閫夋嫨Test Data Parameters 鎽樿鏂囦歡濡傛灉瀛楁鍊間笌鍏跺畠瀛楁鏈夊叧緋誨湪: Computed Expression 涓緭鍏ヨ綆楀垪--鐢熸垚嫻嬭瘯鏁版嵁:
DataBase->Generation Test Data->
閫夋嫨:Genration 綾誨瀷(Sript銆丱DBC)
Selection(閫夋嫨瑕佺敓鎴愮殑琛?
Test Data Genration(Default number of rows 鐢熸垚璁板綍琛屾暟)