mssql.properties 1.2 KB

1234567891011121314151617181920212223
  1. #
  2. # see http://schemaspy.sourceforge.net/dbtypes.html
  3. # for configuration / customization details
  4. #
  5. description=Microsoft SQL Server
  6. connectionSpec=jdbc:microsoft:sqlserver://<host>:<port>;databaseName=<db>
  7. host=database server host
  8. port=database port on host
  9. db=database name
  10. driver=com.microsoft.jdbc.sqlserver.SQLServerDriver
  11. # Sample path to the sql server drivers.
  12. # Use -dp to override.
  13. driverPath=C:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/msbase.jar;C:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/mssqlserver.jar;C:/Program Files/Microsoft SQL Server 2000 Driver for JDBC/lib/msutil.jar
  14. # return text that represents a specific :view / :schema
  15. selectViewSql=select text from syscomments sc, sysobjects so where sc.id=so.id and so.name=:table
  16. # return table_name, column_name, comments for a specific :schema
  17. selectColumnCommentsSql=SELECT i_s.TABLE_NAME, i_s.COLUMN_NAME, s.value AS comments FROM INFORMATION_SCHEMA.COLUMNS i_s INNER JOIN sysproperties s ON s.id = OBJECT_ID(i_s.TABLE_SCHEMA+'.'+i_s.TABLE_NAME) AND s.smallid = i_s.ORDINAL_POSITION AND s.name = 'MS_Description' WHERE OBJECTPROPERTY(OBJECT_ID(i_s.TABLE_SCHEMA+'.'+i_s.TABLE_NAME), 'IsMsShipped')=0