Leveraging on SQL Server metadata