DB_ID function [System]

Returns the database ID number.

Cloud note: Because of tenant database isolation rules, when this function is called in the cloud it returns only information about the current tenant database.

 Syntax
 Parameters
 Returns
 See also
 Standards and compatibility
 Example