4

我正在使用 sqlserver2008,这适用于 sqlserver2008 吗?

我给了 java -jar "D:\Program Files\SchemaSpy\schemaSpyGUI.jar" -dp "D:\jtds-1.2.5-dist\jtds-1.2.5.jar" -t mssql-jtds -db EnterpriseVaultDirectory -主机 localhost -port 1433 -u sa -connprops "D:\Program Files\SchemaSpy\properties\mssql-jtds.properties" -o "D:\Schema"

仍然无法正常工作...

谁能帮帮我吗

4

2 回答 2

2
  1. 请检查“D:\Program Files\SchemaSpy\schemaSpyGUI.jar”?schemaSpyGUI.jar 只是 UI 程序。您需要 schemaspy 5.0.0 ( http://sourceforge.net/projects/schemaspy/files/latest/download?source=files ) 并像这样使用 (java -jar "your_path\schemaSpy_5.0.0.jar" ...)

  2. 如果可能,请使用最新版本的 jtds(当前为 jtds-1.3.0.jar)。

  3. 将“-t mssql-jtds”替换为您为系统修改了“mssql-jtds.properties”的文件(我使用我用 mssql05-jtd.properties 编辑的 mssql05-jtds_mysystem(见下文)。所以我不使用connprops 选项。当然-t 选项不需要extentname 部分(=>.properties)。

  4. 你为什么不使用 Graphviz。制作简单的 ERD 图像。你必须添加 -gv 选项

    - - 下面 - -

    # see http://schemaspy.sourceforge.net/dbtypes.html
    # for configuration / customization details
    #
    
    # Provided by Ernest Zapata, Larry Walker and Emilian Turbatu
    description=jTDS JDBC Driver for Microsoft SQL 2000/2005 Server 
    
    # majority of settings are identical to jTDS: 
    extends=mssql-jtds
    
    # return the table comments
    selectTableCommentsSql=SELECT OBJECT_NAME(t.object_id) AS TABLE_NAME, ex.value AS comments FROM ( sys.tables t LEFT OUTER JOIN sys.extended_properties ex ON ex.major_id = t.object_id AND ex.name = 'MS_Description' AND minor_id = 0) \ **--> You must change this line! you need () and no line feed'\'** 
    JOIN sys.schemas s ON t.schema_id = s.schema_id AND s.name = :schema \
    WHERE OBJECTPROPERTY(t.object_id, 'IsMsShipped')=0 \
    ORDER BY OBJECT_NAME(t.object_id)
    
    # return the column comments
    selectColumnCommentsSql=SELECT OBJECT_NAME(c.object_id) AS TABLE_NAME, c.name AS COLUMN_NAME, ex.value AS comments \
    FROM sys.columns c \
    LEFT OUTER JOIN sys.extended_properties ex \
    ON ex.major_id = c.object_id AND ex.minor_id = c.column_id AND ex.name = 'MS_Description' \
    JOIN sys.tables t ON t.object_id = c.object_id \
    JOIN sys.schemas s ON t.schema_id = s.schema_id AND s.name = :schema \
    WHERE OBJECTPROPERTY(c.object_id, 'IsMsShipped')=0 \
    ORDER BY OBJECT_NAME(c.object_id), c.column_id
    
于 2013-04-06T00:43:55.220 回答
1

为我工作: 使用 jarfix
下载 schemaSpyGui 下载 schemaSpy 下载 mssql-tds 驱动程序 解压缩 schemaSpyGui 解压缩 schemaSpyGui 文件夹中的 schemaSpy 解压缩 schemaSpyGui/drivers/mssql-tds 文件夹中的 mssql-tds 驱动程序







参数
dbtype:mssql-tds
设置主机,设置端口,设置用户,设置密码
设置路径驱动程序
设置路径架构间谍
设置输出路径,字符集

但是 mssql 2008 r2 存在错误

于 2013-10-22T18:37:25.993 回答