Return the name of the current user in the SQL Server database:
SELECT CURRENT_USER;
Try it Yourself »
The CURRENT_USER function returns the name of the current user in the SQL Server database.
CURRENT_USER
Works in: | SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse |
---|
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!