db_instanceid

Description

Returns the id of the owning instance of a specified local temporary database. Returns NULL if the specified database is a global temporary database or a nontemporary database.

Syntax

db_instanceid(dbid)
db_instanceid(dbname)

Usage