Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 92bd252

Browse files
YanoOfQueenscastlerwestMSFT
authored andcommitted
added edge case when the parameter is 0
1 parent 737ec83 commit 92bd252

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/t-sql/functions/db-name-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ DB_NAME ( [ database_id ] )
3636
## Arguments
3737
*database_id*
3838

39-
The identification number (ID) of the database whose name `DB_NAME` will return. If the call to `DB_NAME` omits *database_id*, `DB_NAME` returns the name of the current database.
39+
The identification number (ID) of the database whose name `DB_NAME` will return. If the call to `DB_NAME` omits *database_id* or when the *database_id* is 0, `DB_NAME` returns the name of the current database.
4040

4141
## Return types
4242
**nvarchar(128)**

0 commit comments

Comments
 (0)