managed-instance icon indicating copy to clipboard operation
managed-instance copied to clipboard

Invalid object name 'sys.master_files'.

Open pegatim opened this issue 4 years ago • 4 comments

Ran the script against an Azure SQL DB and got the error:

Invalid object name 'sys.master_files'.

Any idea? Thanks!

pegatim avatar Nov 04 '20 01:11 pegatim

@timlaipega The script is intended for Managed Instance, not for SQL Database. While it may be possible to make the script compile on SQL Database by replacing sys.master_files with sys.database_files, etc., it would not produce expected results because some assumptions it makes are only valid for Managed Instance.

dimitri-furman avatar Nov 05 '20 21:11 dimitri-furman

Ah, dang, Azure SQL DB needs a way to show when any throttling is occurring. Thanks though!

pegatim avatar Nov 05 '20 23:11 pegatim

You can determine that by taking snapshots of sys.dm_io_virtual_file_stats() and looking at the diffs of io_stall_queued_read_ms and io_stall_queued_write_ms.

dimitri-furman avatar Nov 05 '20 23:11 dimitri-furman

Right on! Thanks for your help!!!

pegatim avatar Nov 06 '20 01:11 pegatim