learn.microsoft.com » sql » functions » db-name-transact-sql
- Returning the current database name.
[Current Database]
is not placeholder and actually works as it is.
SELECT DB_NAME() AS [Current Database];
GO
learn.microsoft.com » sql » functions » db-name-transact-sql
[Current Database]
is not placeholder and actually works as it is.SELECT DB_NAME() AS [Current Database];
GO