metabase/metabase
在 GitHub 查看Read SQL Server `MS_Description` extended properties to auto-populate table and column descriptions
Open
#18,500 创建于 2021年10月15日
.BackendAdministration/Metadata & SyncDatabase/SQLServerDrainable:YesType:New Featuregood first issue
描述
Microsoft SQL Server provides an "extended properties" feature which enables self-documenting tables and columns. Developers can set descriptions for tables and columns easily with SQL.
In my organization, we've been setting descriptions on every table and column for years and years. Several tools we've used over the years that automatically generate documentation from Microsoft SQL Databases query this metadata.
I was sad to see that metabase did not read any of the descriptions stored within my tables.
I propose a feature request that metabase take advantage of these easily gettable properties to automatically document the tables and columns that it models for Microsoft SQL Server.
See references:
- https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-addextendedproperty-transact-sql?view=sql-server-ver15
- https://www.red-gate.com/simple-talk/databases/sql-server/tools-sql-server/towards-the-self-documenting-sql-server-database/
- https://stackoverflow.com/a/4696381/7752