5

How could I remove the Filter operator and somehow force the Index Scan operator to read only the few thousand rows? The Filter operator is applying the bitmap built on the join columns at the hash join. Of the three join predicates, only order_date has a data type that is supported for bitmap pushdown to the column store scan. If you look at the Predicate ...


4

Switch to indirect checkpoints (generally, set recovery interval time to 60 seconds, at least for user databases). I wrote about this issue here and here, and you should read those posts in full before making the change, though it’s pretty much a no-brainer IMHO. The impact in our environment was drastic and immediate, and it was simple to prove the change ...


4

Results are still returned to the client with the discard results option. The large ASYNC_NETWORK_IO wait time with discard results suggests network latency returning 221MB of data. I suggest you focus your troubleshooting on network rather than query plans. Try a simple test by copying an 200MB file from the SQL machine to the client to see if you get ...


3

Check with your storage admin if there's any firmware updates recently or your storage subsystem needs a newer firmware update. I've seen this messages on SQL environment multiple times and one thing you can look at is the storage layer configuration (this is the common cause). Also, one thing to monitor your disk performance using perfmon. disk counters you ...


3

Almost certainly because it is seen as a trivial plan and those do not activate the missing index feature, there´s a workaround in this blog by Mr Darling https://www.erikdarlingdata.com/sql-server/whats-the-point-of-1-select-1/


3

This is an artifact of your testing methodology. You impersonated a user. A user is a database-level principal. Instead impersonate the login, or test with the target identity actually connecting to SQL Server.


2

I don't know why this is deadlocking, and I can't reproduce it. But like a lot of deadlock scenarios it's not necessary to fully understand them to remediate them. A deadlock is caused by locking to little, and too late, and they can typically be resolved by forcing an earlier and more exclusive lock. And they best way to handle explicit locking in SQL ...


1

I have encountered a similar problem, when using Service Broker that uses internal tables not seens in many query that you do to calculate the amount of data. Use : DECLARE @SQL NVARCHAR(max) = N''; SELECT @SQL = @SQL + N'EXEC sp_spaceused ''' + s.name + '.' + it.name + ''';' FROM sys.internal_tables AS it JOIN sys.schemas AS s ON it....


1

For server backup on Windows the backup software will typically interact with the the Volume Shadow Copy Service to generate a a point-in-time consistent view of each volume regardless of changing data or open files. Then for server-level recovery, restore based on the volume snapshots to and then perform SQL Server database RESTORE using backups taken ...


1

Can any option be set when performing either the BACKUP or RESTORE command that retains this database option? Edit: you can restore the database with ENABLE_BROKER. Check the sample below: RESTORE DATABASE [WideWorldImportersA] FROM DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Backup\WideWorldImporters-Full.bak' WITH FILE = 1, ...


Only top voted, non community-wiki answers of a minimum length are eligible