---
title: current_metastore function
description: Learn the syntax of the current\_metastore function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/current_metastore
---

# `current_metastore` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime 11.3 LTS and above

Returns the current metastore id.

## Syntax

```
current_metastore()
```

## Arguments

This function takes no arguments.

## Returns

A STRING.

The metastore id is of the form: `<cloud>:<region>:<uuid>`

## Examples

```sql
> SELECT current_metastore();
  azure:westus:f64dcb39-5046-4d4c-9588-c6ac84f9b38a
```

## Related functions

* [CREATE RECIPIENT](https://docs.databricks.com/aws/en/sql/language-manual/sql-ref-syntax-ddl-create-recipient.md)
