Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2019-08 Release (BrentOzarULTD#2094)
* BrentOzarULTD#2005 sp_Blitz version numbers (BrentOzarULTD#2006) Working on BrentOzarULTD#2005. * BrentOzarULTD#2005 easier merges for versions Putting Version, VersionDate variables on a single line. Closes BrentOzarULTD#2005. * BrentOzarULTD#2010 sp_Blitz paused online index operations (BrentOzarULTD#2011) Add warning for rows in sys.index_resumable_operations. Closes BrentOzarULTD#2010. * Fix collation error. (BrentOzarULTD#2014) * BrentOzarULTD#2015 sp_BlitzCache sorting in Azure SQL DB (BrentOzarULTD#2016) Instead of checking version numbers, look at sys.all_columns for the grant and spill columns. Closes BrentOzarULTD#2015. * BrentOzarULTD#2024 sp_BlitzQueryStore s.is_cursor error (BrentOzarULTD#2025) Changed alias on a temp table to match other nearby aliases. Closes BrentOzarULTD#2024. * First responder consistency check (BrentOzarULTD#1997) * sp_Blitz update compile and runs on MSSQL 2014 * Update sp_Blitz.sql Added @debug handling - bug found for missing mandatory component * Update sp_Blitz.sql * Update sp_Blitz.sql CheckId familly: 226 - FRK consistency Messages: 2260 - First Responder kit consistency check has been unexpectedly modified (check names) 2261 - First Responder kit consistency check has been unexpectedly modified (dynamic query failure) 2262 - First Responder kit mandatory component called %s is missing 2263 - First Responder kit consistency check has been unexpectedly modified (checks ordering) 2264 - Component %s is not at the minimum version required to run this procedure 2265 - First Responder kit consistency check (Failed dynamic SP call to %s) 2266 - First Responder kit consistency: outdated component (%s) removed "everything ok message" * Resolves almost all Brent's comments except CHAR(92) change removed 2264 - Component %s is not at the minimum version required to run this procedure changed detailled finding message for previous 2264 message Checked compilation on SQL Server 2014 * BrentOzarULTD#1994 sp_Blitz version checking (BrentOzarULTD#2028) Changed wording from "consistency check" to "version check," updated check IDs, removed mandatory scripts. Closes BrentOzarULTD#1994. * BrentOzarULTD#1944 sp_BlitzIndex ignore databases (BrentOzarULTD#2029) Adds new IgnoreDatabases parameter, and skips databases with >100 partitions. Closes BrentOzarULTD#1944. * BrentOzarULTD#2009 sp_BlitzFirst call BC differently (BrentOzarULTD#2030) Use SkipAnalysis = 1, SortOrder = all when calling sp_BlitzCache. Closes BrentOzarULTD#2009. * BrentOzarULTD#2026 sp_BlitzCache show multiple plan count (BrentOzarULTD#2031) Closes BrentOzarULTD#2026. * BrentOzarULTD#2017 sp_Blitz Evaluation Edition expiration check (BrentOzarULTD#2032) Closes BrentOzarULTD#2017. * BrentOzarULTD#2018 sp_BlitzCache arith overflow (BrentOzarULTD#2033) Changing MONEY on totals to BIGINT. Closes BrentOzarULTD#2018. * BrentOzarULTD#2019 sp_BlitzCache air_quote_actual plans (BrentOzarULTD#2034) Closes BrentOzarULTD#2019. * Add END in the right spot for IF @Help = 1 (BrentOzarULTD#2035) The END for IF @Help = 1 was in the wrong place, making the procedure a no-op *unless* you also specify @Help = 1. * BrentOzarULTD#2037 sp_BlitzLock support for AWS RDS (BrentOzarULTD#2038) Skips update stats with options that RDS doesn't support. Closes BrentOzarULTD#2037. * 2019_04_release_prep Bumping version numbers, building installation scripts. * Moved SQL header build outside of If block (BrentOzarULTD#2040) * BrentOzarULTD#2042 implicit transaction troubleshooting (BrentOzarULTD#2043) Clarify warnings in sp_Blitz, sp_BlitzFirst. Closes BrentOzarULTD#2042. * edit hyperlink (BrentOzarULTD#2056) * add @OutputType = 'XML' (BrentOzarULTD#2048) * Update sp_blitzcache to avoid arithmetic overflow errors (BrentOzarULTD#2046) Updated sp_blitzcache to avoid arithmetic overflow errors - tabel definitions had changed to BIGINT but the actual logic in this section still casted values as money which was breaking the ceiling for this on our setup. I've pretty much blanket chantged everything except averages to be bigint and have been running for a few days with no failrues since so looks ok and worth someone who knows what they're doing casting an eye over it! * Update sp_ineachdb.sql (BrentOzarULTD#2061) Added 2 Variables @SQLVersion: This was implemented so that large organizations with SQL Server 2008 and R2 can use this sproc. Currently without this change SQL Server versions 2008 and 2008R2 will error with the following. Msg 208, Level 16, State 1, Procedure sp_ineachdb, Line 176 Invalid object name 'sys.dm_hadr_database_replica_states'. @ServerName: This was added to account for VMware SnapShots at times @@ServerName will either come up NULL or with old server name. CONVERT(sysname, SERVERPROPERTY('ServerName')) is a better option and reduces minor nuisances. Feel free to blend in the code if you feel this brings value to the project. * ignore readable secondaries in sp_blitzcache (BrentOzarULTD#2049) * ignore readable secondaries in sp_blitzcache this is a fix for issue BrentOzarULTD#2027 * Checking for is_primary_replica column In sys.dm_hadr_database_replica_states. * 2019_07 Release Bumping version numbers and updating install scripts. * Set DBOwner after restoring database (BrentOzarULTD#2082) * Default @RestoreDiff = NULL If @RestoreDiff IS NULL and @BackupPathDiff != null: treat RestoreDiff=1 * Set database owner after restore * Revert restorediff change from dev branch * Exclude Readable secondary DBs (BrentOzarULTD#2073) Temp table added (#ReadableDBs) this table is populated with all read intent database id's which is used to filter out these database when querying against dm_exec_requests or sessions with a cross apply against a plan cache function. * BrentOzarULTD#2067 Updating directory "/" fixing to work with URLs (BrentOzarULTD#2071) * Updating directory "/" fixing to work with URLs Also correcting incorrect logging message for fixing @MoveLogDrive slashes * Fixing variable typo Data should be log * BrentOzarULTD#2076 sp_BlitzIndex columnstore to table (BrentOzarULTD#2085) When saving columnstore definitions to table, trim them to 4000 characters to avoid an overflow. Closes BrentOzarULTD#2076. * @2060 sp_BlitzFirst 2TB RAM (BrentOzarULTD#2086) Casting RAM as a BIGINT instead of INT. Closes BrentOzarULTD#2060. * BrentOzarULTD#2053 sp_BlitzIndex ignoring databases (BrentOzarULTD#2087) Strip out CR/LF from @IgnoreDatabases, trim spaces afterwards. Closes BrentOzarULTD#2053. * BrentOzarULTD#2022 sp_BlitzCache disabling air_quote_actuals (BrentOzarULTD#2088) This SQL 2019 & Azure SQL DB feature isn't ready yet, so disabling til Microsoft is ready. Closes BrentOzarULTD#2022. * BrentOzarULTD#2044 sp_Blitz new power mode (BrentOzarULTD#2089) Adds Windows 10's new Ultimate Performance Power Mode, whatever that is. Closes BrentOzarULTD#2044. * BrentOzarULTD#2062 sp_BlitzFirst false alarm on index reorgs (BrentOzarULTD#2091) Filtering for sql_text not like %alter index%'. Closes BrentOzarULTD#2062 with duct tape. * BrentOzarULTD#2052 sp_BlitzCache prioritization (BrentOzarULTD#2092) Fixes bug in AirQuoteActual plans, plus if plan cache is 75% new as of today, raise priority 1 warning. Closes BrentOzarULTD#2052. * BrentOzarULTD#2070 sp_BlitzCache duplicated index count (BrentOzarULTD#2093) Filters index recommendations by spid. Closes BrentOzarULTD#2070. * sp_DatabaseRestore case bug Inconsistent case sensitivity. * 2019-09 release prep Bumping version numbers and dates.
- Loading branch information