How to Determine Which Physical Devices a Database is On

Use the following steps to find the physical devices on which a database resides:

  1. Find the dbid of the database in sysdatabases.

  2. For that dbid, select from sysusages to list all of the device fragments belonging to that database.

  3. Using sysdevices, determine which device has a low through high virtual page range that includes the vstarts from step 2. The device fragment whose vstart you used is on that device.