If you do not specify dbidparm, or if dbidparm is NULL, the IDs for all databases running on the database server are returned. If dbidparm is less than 0, then only the ID for the current database is returned.
Cloud note: Because of tenant database isolation rules, when this system procedure is run in the cloud it returns only information about
the current tenant database.