Skip to content

Commit

Permalink
Merge pull request #300 from VladDBA/dev
Browse files Browse the repository at this point in the history
license year bump and small bug fix
  • Loading branch information
VladDBA authored Jan 14, 2025
2 parents d9eccc2 + 6e782a9 commit 91f533c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ Copyright for sorttable.js is held by [Stuart Langridge](http://www.kryogenix.or


Copyright for PSBlitz.ps1, GetStatsInfoForWholeDB.sql, GetOpenTransactions.sql,
GetIndexInfoForWholeDB.sql, GetInstanceInfo.sql, GetAzureSQLDBInfo.sql, GetTempDBUsageInfo.sql GetBlitzWhoData.sql, and styles.css, is held by Vlad Drumea, 2024 as described below.
GetIndexInfoForWholeDB.sql, GetInstanceInfo.sql, GetAzureSQLDBInfo.sql, GetTempDBUsageInfo.sql GetBlitzWhoData.sql, and styles.css, is held by Vlad Drumea, 2025 as described below.

Copyright (c) 2024 Vlad Drumea - https://vladdba.com/
Copyright (c) 2025 Vlad Drumea - https://vladdba.com/

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
28 changes: 9 additions & 19 deletions PSBlitz.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,14 @@
Copyright for sp_Blitz, sp_BlitzCache, sp_BlitzFirst, sp_BlitzIndex,
sp_BlitzLock, and sp_BlitzWho is held by Brent Ozar Unlimited under MIT licence:
SQL Server First Responder Kit - https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit
Copyright for sorttable.js is held by Stuart Langridge - http://www.kryogenix.org/code/browser/sorttable/
Copyright for PSBlitz.ps1, GetStatsInfoForWholeDB.sql, GetOpenTransactions.sql,
GetIndexInfoForWholeDB.sql, GetInstanceInfo.sql, and GetTempDBUsageInfo.sql
is held by Vlad Drumea, 2024 as described below.
is held by Vlad Drumea, 2025 as described below.
Copyright (c) 2025 Vlad Drumea - https://vladdba.com/
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -168,7 +173,7 @@
Author: Vlad Drumea (VladDBA)
Website: https://vladdba.com/
Copyright: (c) 2024 by Vlad Drumea, licensed under MIT
Copyright: (c) 2025 by Vlad Drumea, licensed under MIT
License: MIT https://opensource.org/licenses/MIT
.LINK
Expand Down Expand Up @@ -272,8 +277,8 @@ param(

###Internal params
#Version
$Vers = "5.0.0"
$VersDate = "2024-12-27"
$Vers = "5.0.1"
$VersDate = "2025-01-14"
$TwoMonthsFromRelease = [datetime]::ParseExact("$VersDate", 'yyyy-MM-dd', $null).AddMonths(2)
$NowDate = Get-Date
#Get script path
Expand Down Expand Up @@ -3896,24 +3901,9 @@ ELSE IF ( (SELECT PARSENAME(CONVERT(NVARCHAR(128), SERVERPROPERTY ('PRODUCTVERSI
Save-HtmlFile $html $HtmlFileName $HTMLOutDir $DebugInfo
Invoke-ClearVariables html, htmlTable
}
else {
if ($IsAzureSQLDB) {
$SheetName = "Index Fragmentation for $ASDBName"
}
else {
$SheetName = "Index Fragmentation for $CheckDB"
}
$ExcelSheet = $ExcelFile.Worksheets.Item($SheetName)
Convert-TableToExcel $IndexTbl $ExcelSheet -StartRow $DefaultStartRow -DebugInfo:$DebugInfo
##Saving file
Save-ExcelFile $ExcelFile

}
else {
$ExcelSheet = $ExcelFile.Worksheets.Item("Index Fragmentation")

Convert-TableToExcel $IndexTbl $ExcelSheet -StartRow $DefaultStartRow -DebugInfo:$DebugInfo

##Saving file
Save-ExcelFile $ExcelFile
}
Expand Down

0 comments on commit 91f533c

Please sign in to comment.