sql匯入powerdesigner時中文丟失問題(oracle11g)
(原文是針對oracle11g,sqlserver2008未測試通過)
當將sql匯入powerdesigner時,中文注釋丟失在表結構中全部丟失,
這時只需執行如下vb指令碼即可解決此問題:快試試吧!
powerdesigner->tools->execute commands->edit/run scripts
執行指令碼如下:
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
private sub processfolder(folder)
on error resume next
dim tab 'running table
for each tab in folder.tables
if not tab.isshortcut then
tab.name = tab.comment
dim col ' running column
for each col in tab.columns
if col.comment="" then
else
col.name= col.comment
end if
next
end if
next
dim view 'running view
for each view in folder.views
if not view.isshortcut then
view.name = view.comment
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 server2008)+ sql匯入powerdesigner時中文丟失問題(oracle11g)
將資料庫中的表匯入到PowerDesigner中
1 開啟powerdesigner12,在選單中按照如下方式進行操作 file reverse engineer database 點選後,彈出 new physical data model 的對話方塊 2 在general選項卡中 model name 模板名字,自己命名。dmbms 根據需要選...
mysql 匯入dmp mysql 匯入sql
當匯入的sql檔案過大時的解決辦法 方法一 使用phpmyadmin上傳,需要修改一些引數 1.修改.phpstudy server php etc php.ini檔案中 原 upload max filesize 2m 修改為 upload max filesize 10m 原 post max ...
SQL匯入資料
exec sp addlinkedserver server dbmes 鏈 接伺服器別名 srvproduct provider sqloledb datasrc 192.168.5.139 要訪問的的資料庫所在的伺服器的ip goexec sp addlinkedsrvlogin dbmes 鏈...