Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019-12 Release #2206

Merged
merged 88 commits into from
Dec 2, 2019
Merged

2019-12 Release #2206

merged 88 commits into from
Dec 2, 2019

Conversation

BrentOzar
Copy link
Member

No description provided.

BrentOzar and others added 30 commits March 21, 2019 14:24
Putting Version, VersionDate variables on a single line. Closes #2005.
Add warning for rows in sys.index_resumable_operations. Closes #2010.
Instead of checking version numbers, look at sys.all_columns for the grant and spill columns. Closes #2015.
Changed alias on a temp table to match other nearby aliases. Closes #2024.
* 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
Changed wording from "consistency check" to "version check," updated check IDs, removed mandatory scripts. Closes #1994.
Adds new IgnoreDatabases parameter, and skips databases with >100 partitions. Closes #1944.
Use SkipAnalysis = 1, SortOrder = all when calling sp_BlitzCache. Closes #2009.
Changing MONEY on totals to BIGINT. Closes #2018.
The END for IF @Help = 1 was in the wrong place, making the procedure a no-op *unless* you also specify @Help = 1.
Skips update stats with options that RDS doesn't support. Closes #2037.
Bumping version numbers, building installation scripts.
Clarify warnings in sp_Blitz, sp_BlitzFirst. Closes #2042.
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!
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

this is a fix for issue #2027

* Checking for is_primary_replica column

In sys.dm_hadr_database_replica_states.
Bumping version numbers and updating install scripts.
* Default @RestoreDiff = NULL
If @RestoreDiff IS NULL and @BackupPathDiff != null: treat RestoreDiff=1

* Set database owner after restore

* Revert restorediff change from dev branch
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.
* Updating directory "/" fixing to work with URLs

Also correcting incorrect logging message for fixing @MoveLogDrive slashes

* Fixing variable typo

Data should be log
When saving columnstore definitions to table, trim them to 4000 characters to avoid an overflow. Closes #2076.
Paul McHenry and others added 27 commits October 5, 2019 06:12
Now ignores the old is_low column. Closes #2143.
* fix for issue #2149

unused heaps were reported as used, see #2149

* corrected fix for issue #2149
Clarifying sp_DatabaseRestore's StopAt parameter for #2152.
Can now sort by query hash plus a second sort field, and avoids calling the proc again. Closes #2156.
Filters & displays local time instead of UTC. Closes #2147.
Fixes a few different related bugs - see the issue for details. Closes #2159.
Passes BlitzCacheSkipAnalysis parameter to sp_BlitzCache. Closes #2155.
Adding query hash to outputs to join to sp_BlitzCache data. Also updating 2017 Hekaton counters while I'm in here. Closes #2162.
Create the table, THEN alter it, you moron. Closes #2166.
Now works with SortOrder = 'all'. Closes #2168.
Plans from the SortOrder = 'spills' were being classified as 'memory grant'. Closes #2170.
Clarifying how sp_BlitzCache SortOrder All works. Related to #2170.
Bumping version numbers.
To show sp_BlitzIndex support for OutputTableName is only for Mode = 2. Closes #2190.
* Added Uninstaller Script

Fulfills request #2080

Deletes all the FirstResponderKit procedures from the current DB or all DBs via parameter

* Case sensitive collation fixes

Gotta love those case sensitive servers.

* Update SqlServerVersions.sql

Fixes #2181

* Fix Typo in BlitzFirst

FIxes #2184

* Fixed dumb decisions
When logging to table, use MAX data sizes for drop_tsql, create_tsql, index_definition. Closes #2183.
Since we no longer need to check whether it's outdated.
To table-level output. Closes #2177.
If you use SortOrder = all and Top > 10, you now have to set BringThePain = 1. Closes #2172.
Bumping version numbers, dates, building combined installer script. Closes #2203.
@BrentOzar BrentOzar added this to the 2019-12 Release milestone Dec 2, 2019
@BrentOzar BrentOzar self-assigned this Dec 2, 2019
@BrentOzar BrentOzar merged commit 8eaee82 into master Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet