In most RDBMS, the meta-model is “self contained”, which means that I can find out the model of the meta-model by browsing the meta-model itself. This doesn’t seem to be the case with SQL Server. What I want to do is this:
SELECT * FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'INFORMATION_SCHEMA'
That way, I can discover the INFORMATION_SCHEMA schema itself.
Is there any grant/permission/login setting that I have to configure in order to make the INFORMATION_SCHEMA views be “self contained”?
Don’t think this is possible.
The definition of the
INFORMATION_SCHEMA.TABLESview isso it pulls its information from
sys.objectshowever this in turn contains nothing about theINFORMATION_SCHEMAobjects.The metadata for these is accessed via
sys.system_objectsinstead.