-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support REMARKS for columns and tables #646
Comments
Hi @sualeh This is definitely a missing implementation in the driver, we'll work on it and fix it in coming releases. |
Hi @sualeh , The driver calls sp_columns and sp_tables for I also investigated if we can modify the driver to call something like We decided that REMARKS field is not ideal for retrieving extended properties and suggest calling |
The point is not that remarks can be obtained in some other way, but that the Microsoft JDBC driver is not compatible with the JDBC specifications. Here is an idea - create a new driver property for specifying the name of the extended property that should be retrieved for remarks. Then, select just that property, and return in the |
HI @sualeh "Extended properties" are meant to store Key-Value pairs for anything that can be useful for maintaining details about table/column. Adding additional property to the driver for reading these extended properties and finding out description does not sound a robust solution, as:
In our point of view, these properties should be treated as "Extended properties" only, not to be mixed with
|
Hello @cheenamalhotra |
Driver version or jar name
Microsoft JDBC Driver 6.4 for SQL Server 6.4.0.0
SQL Server version
Microsoft SQL Server 14.00.3015
Client operating system
Windows 10
Java/JVM version
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
Table schema
Problem description
DatabaseMetaData.getTables(...)
andDatabaseMetaData.getColumns(...)
does not return table and column descriptions in theREMARKS
column. TheREMARKS
column should have the description from the extended properties.Expected behavior and actual behavior
See above.
Repro code
Call
DatabaseMetaData.getTables(...)
andDatabaseMetaData.getColumns(...)
.The text was updated successfully, but these errors were encountered: