Reputation: 6029
Is there a possibility to get the full database schema including table columns, indexex, views, relations, etc, with sql queries?
get a list of all tables from database and foreach table get:
get a list of all columns and foreach column get:
Upvotes: 0
Views: 4748
Reputation: 29649
As @lad2025 comments - yes, this is possible by querying the sys. schema. Technet article and tutorial available.
Upvotes: 1