mssql05.properties 1.2 KB

123456789101112131415161718192021222324252627282930
  1. #
  2. # see http://schemaspy.sourceforge.net/dbtypes.html
  3. # for configuration / customization details
  4. #
  5. # Provided by Craig Boland
  6. description=Microsoft SQL Server 2005
  7. # some details in mssql.properties:
  8. extends=mssql
  9. connectionSpec=jdbc:sqlserver://<host>:<port>;databaseName=<db>
  10. host=database server host
  11. port=database port on host
  12. db=database name
  13. driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
  14. # Sample path to the sql server drivers.
  15. # Use -dp to override.
  16. driverPath=C:/Program Files/Microsoft SQL Server 2005 JDBC Driver/sqljdbc_1.0/enu/sqljdbc.jar
  17. # querying database metadata isn't thread safe with this driver.
  18. dbThreads=1
  19. # reference: http://databases.aspfaq.com/schema-tutorials/schema-how-do-i-show-the-description-property-of-a-column.html
  20. # return table_name, column_name, comments for a specific :schema
  21. # Provided by Ernest Zapata
  22. 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' WHERE OBJECTPROPERTY(c.object_id, 'IsMsShipped')=0 ORDER BY OBJECT_NAME(c.object_id), c.column_id