At SQLPASS a DBA asked how to see the memory used by each In-Memory OLTP table. The DMV sys.dm_db_xtp_table_memory_stats answers it. Here is the script.
SQL Server Backup Compression: How Much Space It Saves
Backup compression needs only the COMPRESSION option in the BACKUP statement. This post backs up a demo database twice and compares the sizes and times. It also checks the restore, explains the error that mixing compressed and plain backups raises, and covers the costs.
How to Downgrade Database from SQL Server 2014 to SQL Server 2012 – Interview Question of the Week #099
Can you downgrade a database from SQL Server 2014 to SQL Server 2012? Not directly, but there is one workaround: script the database with data and run it.
SQL SERVER – System Function @@IDLE to Find System Ideal Time
Running @@IDLE returns a number that is hard to read. Here is what this system function measures and how to turn it into idle time you can understand.
How to Remove Database Mail History and Stop msdb Growing
Database Mail history stays in msdb until you delete it, so the sysmail tables can grow for years. This post measures the tables, then removes the history with the two supported procedures instead of direct deletes. It also covers a month by month loop for a big backlog and a schedule.




