SELECT TABLE_TYPE as [Type], TABLE_CATALOG as [Catalog], TABLE_SCHEMA as [Schema], TABLE_NAME as [Name]
FROM INFORMATION_SCHEMA.TABLES
UNION
SELECT ROUTINE_TYPE, ROUTINE_CATALOG, ROUTINE_SCHEMA, ROUTINE_NAME
FROM INFORMATION_SCHEMA.ROUTINES
ORDER BY TABLE_TYPE
댓글 없음:
댓글 쓰기