Ecco come ricavare in recordset la lista delle viste disponibili in un DB MsSQLServer.
SELECT SCHEMA_NAME(schema_id) AS schema_name,name AS view_name,OBJECTPROPERTYEX(OBJECT_ID,'IsIndexed') AS IsIndexed,OBJECTPROPERTYEX(OBJECT_ID,'IsIndexable') AS IsIndexable--,*FROM sys.views;GO
No comments:
Post a Comment