├── .gitattributes ├── .gitignore ├── LICENSE.txt ├── README.md └── TSQLCodeLibrary ├── Scripts └── ScriptsIgnoredOnImport.sql ├── TSQLCodeLibrary.sln ├── TSQLCodeLibrary.sqlproj ├── conchango.sql ├── conchango └── Stored Procedures │ ├── csp_ToolIDAssign.sql │ └── csp_ToolRenameObjects2005.sql ├── jt.sql └── jt ├── Functions └── cdf_TitleCase.sql ├── Stored Procedures ├── AllPermissions.sql ├── AutoGrowAutoShrinkEvents.sql ├── CurrentlyExecutingSQLAgentJobs.sql ├── DeadlockGraphShredder.sql ├── GetIoVirtualFileStatsDeltas.sql ├── GetPartitionRowTallies.sql ├── GetTableRowTallies.sql ├── TableStats.sql ├── WaitStatsAnalysis.sql └── tempdbStats.sql └── Views ├── StatsLastUpdatedTime.sql ├── vwAllSessions.sql ├── vwBufferusagePerDB.sql ├── vwCacheUsagePerTable.sql ├── vwCodeLibraryDescriptions.sql ├── vwFastRowCounts.sql └── vwdiskfileLatency.sql /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/README.md -------------------------------------------------------------------------------- /TSQLCodeLibrary/Scripts/ScriptsIgnoredOnImport.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/Scripts/ScriptsIgnoredOnImport.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/TSQLCodeLibrary.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/TSQLCodeLibrary.sln -------------------------------------------------------------------------------- /TSQLCodeLibrary/TSQLCodeLibrary.sqlproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/TSQLCodeLibrary.sqlproj -------------------------------------------------------------------------------- /TSQLCodeLibrary/conchango.sql: -------------------------------------------------------------------------------- 1 | CREATE SCHEMA [conchango] 2 | -------------------------------------------------------------------------------- /TSQLCodeLibrary/conchango/Stored Procedures/csp_ToolIDAssign.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/conchango/Stored Procedures/csp_ToolIDAssign.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/conchango/Stored Procedures/csp_ToolRenameObjects2005.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/conchango/Stored Procedures/csp_ToolRenameObjects2005.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt.sql: -------------------------------------------------------------------------------- 1 | CREATE SCHEMA [jt] 2 | -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Functions/cdf_TitleCase.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Functions/cdf_TitleCase.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/AllPermissions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/AllPermissions.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/AutoGrowAutoShrinkEvents.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/AutoGrowAutoShrinkEvents.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/CurrentlyExecutingSQLAgentJobs.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/CurrentlyExecutingSQLAgentJobs.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/DeadlockGraphShredder.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/DeadlockGraphShredder.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/GetIoVirtualFileStatsDeltas.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/GetIoVirtualFileStatsDeltas.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/GetPartitionRowTallies.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/GetPartitionRowTallies.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/GetTableRowTallies.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/GetTableRowTallies.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/TableStats.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/TableStats.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/WaitStatsAnalysis.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/WaitStatsAnalysis.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Stored Procedures/tempdbStats.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Stored Procedures/tempdbStats.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Views/StatsLastUpdatedTime.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Views/StatsLastUpdatedTime.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Views/vwAllSessions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Views/vwAllSessions.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Views/vwBufferusagePerDB.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Views/vwBufferusagePerDB.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Views/vwCacheUsagePerTable.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Views/vwCacheUsagePerTable.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Views/vwCodeLibraryDescriptions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Views/vwCodeLibraryDescriptions.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Views/vwFastRowCounts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Views/vwFastRowCounts.sql -------------------------------------------------------------------------------- /TSQLCodeLibrary/jt/Views/vwdiskfileLatency.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamiekt/TSQLCodeLibrary/HEAD/TSQLCodeLibrary/jt/Views/vwdiskfileLatency.sql --------------------------------------------------------------------------------