---
title: "How to check current user name of database in SQL Server?"  
description: "How to check current user name of database in SQL Server?"  
author: "Ashutosh Kumar Verma"  
published: 2021-11-18  
canonical: https://www.mindstick.com/interview/33836/how-to-check-current-user-name-of-database-in-sql-server  
category: "mssql server"  
tags: ["sql server", "sql"]  
reading_time: 1 minute  

---

# How to check current user name of database in SQL Server?

## SQL CURRENT_USER :

There is a advance function in SQL Server is used to find the current user name of SQL server database that is, CURRENT_USER.

## Example:

```
SELECT CURRENT_USER;
```

## Outout:

dbo

## Answers

### Answer by Ashutosh Kumar Verma

## SQL CURRENT_USER :

There is a advance function in SQL Server is used to find the current user name of SQL server database that is, CURRENT_USER.

## Example:

```
SELECT CURRENT_USER;
```

## Outout:

dbo


---

Original Source: https://www.mindstick.com/interview/33836/how-to-check-current-user-name-of-database-in-sql-server

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
