PowerDesigner 使用(一)

最近安装了PowerDesigner 16,用来管理建模,遇到了如下几个问题,记录下来处理,以便日后查阅。

问题1:导出的SQL的 column含有 SQL_Latin1_General_CP1_CI_AS的文字。

PowerDesigner 使用(一)_第1张图片

解决方案:打开PowerDesigner,  选择 Database》Edit Current DBMS》如下图,在add部分的右侧的Value替换为

%20:COLUMN% [%COMPUTE%?AS [(]%COMPUTE%[)]:[%.L:DATATYPE%=xml?xml[%XMLSchemaCollection%?([%ContentType% ]%XMLSchemaCollection.GeneratedName%):                 ]:%20:DATATYPE%][%ExtRowGuidCol%? RowGuidCol][%IDENTITY%? %IDENTITY%[[(%ExtIdentitySeedInc%)][%ExtIdtNotForReplication%? not for replication]]:[%ExtNullConstName%? constraint %ExtNullConstName%][ %NULL%][ %NOTNULL%]][[%ExtDeftConstName%? constraint %ExtDeftConstName%] default %DEFAULT%]]
   [%CONSTDEFN%]

 

PowerDesigner 使用(一)_第2张图片

生成的最近脚本样式为:

PowerDesigner 使用(一)_第3张图片

 

问题2:导出的SQL的 primary 含有 41D82F6BC5432660 的类似ID的文字,重复执行语句提示主键存在的错误。

PowerDesigner 使用(一)_第4张图片

解决方案:

TODO

 

 

你可能感兴趣的:(数据库)