--- title: "SCHEMATA (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "03/15/2017" ms.prod: "sql-non-specified" ms.reviewer: "" ms.suite: "" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords: - "SCHEMATA_TSQL" - "SCHEMATA" dev_langs: - "TSQL" helpviewer_keywords: - "INFORMATION_SCHEMA.SCHEMATA view" - "SCHEMATA view" ms.assetid: 69617642-0f54-4b25-b62f-5f39c8909601 caps.latest.revision: 41 author: "BYHAM" ms.author: "rickbyh" manager: "jhubbard" --- # SCHEMATA (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-all_md](../../includes/tsql-appliesto-ss2008-all-md.md)] Returns one row for each schema in the current database. To retrieve information from these views, specify the fully qualified name of **INFORMATION_SCHEMA.***view_name*. To retrieve information about all databases in an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], query the [sys.databases (Transact-SQL)](../../relational-databases/system-catalog-views/sys-databases-transact-sql.md) catalog view. |Column name|Data type|Description| |-----------------|---------------|-----------------| |**CATALOG_NAME**|**sysname**|Name of current database| |**SCHEMA_NAME**|**nvarchar(**128**)**|Returns the name of the schema.| |**SCHEMA_OWNER**|**nvarchar(**128**)**|Schema owner name.

**\*\* Important \*\*** Do not use INFORMATION_SCHEMA views to determine the schema of an object. The only reliable way to find the schema of an object is to query the sys.objects catalog view.| |**DEFAULT_CHARACTER_SET_CATALOG**|**varchar(**6**)**|Always returns NULL.| |**DEFAULT_CHARACTER_SET_SCHEMA**|**varchar(**3**)**|Always returns NULL.| |**DEFAULT_CHARACTER_SET_NAME**|**sysname**|Returns the name of the default character set.| ## See Also [System Views (Transact-SQL)](http://msdn.microsoft.com/library/35a6161d-7f43-4e00-bcd3-3091f2015e90) [Information Schema Views (Transact-SQL)](~/relational-databases/system-information-schema-views/system-information-schema-views-transact-sql.md) [sys.databases (Transact-SQL)](../../relational-databases/system-catalog-views/sys-databases-transact-sql.md) [sys.schemas (Transact-SQL)](../../relational-databases/system-catalog-views/schemas-catalog-views-sys-schemas.md) [sys.syscharsets (Transact-SQL)](../../relational-databases/system-compatibility-views/sys-syscharsets-transact-sql.md)