I'm currently running Profiler sessions to track down Lock Timeout
problems.
My Profiler view contains (amongst others) the dbid column.
Much of the time, this displays familiar dbids, such as 2 (tempdb) and
5 (my main user db). However, it also regularly displays IDs of 0 and
132.
Using SELECT DB_NAME(), these translate as "master" and "NULL"
respectively.
Does anyone know:
a) why dbid = 0 translates to "master", when the actual id of this
database is 1, and
b) why Profiler reports these dbids in the first place?