├── .gitattributes ├── .gitignore ├── DataWarehousing └── DateTime │ ├── fn_DateTable.sql │ ├── fn_TimeTable.sql │ └── usp_TimeTable.sql ├── LICENSE ├── README.md ├── RightsManagement ├── sp_CloneRights.sql └── sp_HelpRights.sql ├── SSISDB ├── SSISDB.Export │ ├── SSISDB.Export.sln │ ├── SSISDB.Export │ │ ├── Properties │ │ │ ├── AssemblyInfo.cs │ │ │ ├── Resources.Designer.cs │ │ │ └── Resources.resx │ │ ├── SSISDB.Export.ExportProjectClr.sql │ │ ├── SSISDB.Export.csproj │ │ ├── SSISDB.Export.snk │ │ ├── SSISDB.Export.sql │ │ ├── SSISDBExport.cs │ │ └── sp_SSISExportProject.sql │ └── TestApp │ │ ├── App.config │ │ ├── Program.cs │ │ ├── Properties │ │ └── AssemblyInfo.cs │ │ └── TestApp.csproj ├── SSISDB_Indexes.sql ├── sp_SSISCloneConfiguration.sql ├── sp_SSISCloneEnvironment.sql ├── sp_SSISClonePermissions.sql ├── sp_SSISCloneProject.sql ├── sp_SSISExportProject.sql ├── sp_SSISListEnvironment.sql ├── sp_SSISMapEnvironment.sql ├── sp_SSISResetConfiguraion.sql ├── sp_ssisdb.sql ├── sp_ssisstat.sql ├── usp_CheckConstraints.sql ├── usp_cleanup_key_certificates.sql └── usp_cleanup_server_retention_window.sql ├── Samples └── DateTime │ ├── DayOfWeek.sql │ └── StartAndEndOfPeriods.sql ├── Searching └── sp_find.sql ├── TablesManagement ├── Partitioning │ ├── sp_HelpPartitionFunction.sql │ ├── sp_HelpPartitionScheme.sql │ ├── sp_tblCheckAndCreatePartitions.sql │ ├── sp_tblCleanupRetentionWindow.sql │ ├── sp_tblCreatePartitionFunction.sql │ ├── sp_tblDropPartition.sql │ └── sp_tblSwitchPartition.sql └── Scripting │ ├── 01-sp_tblScriptIndexes.sql │ └── 02-sp_tblScriptTable.sql └── msdb ├── sp_ScheduleStatus.sql └── sp_jobstatus.sql /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/.gitignore -------------------------------------------------------------------------------- /DataWarehousing/DateTime/fn_DateTable.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/DataWarehousing/DateTime/fn_DateTable.sql -------------------------------------------------------------------------------- /DataWarehousing/DateTime/fn_TimeTable.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/DataWarehousing/DateTime/fn_TimeTable.sql -------------------------------------------------------------------------------- /DataWarehousing/DateTime/usp_TimeTable.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/DataWarehousing/DateTime/usp_TimeTable.sql -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/README.md -------------------------------------------------------------------------------- /RightsManagement/sp_CloneRights.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/RightsManagement/sp_CloneRights.sql -------------------------------------------------------------------------------- /RightsManagement/sp_HelpRights.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/RightsManagement/sp_HelpRights.sql -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export.sln: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export.sln -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export/Properties/AssemblyInfo.cs -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export/Properties/Resources.Designer.cs -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export/Properties/Resources.resx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export/Properties/Resources.resx -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export/SSISDB.Export.ExportProjectClr.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export/SSISDB.Export.ExportProjectClr.sql -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export/SSISDB.Export.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export/SSISDB.Export.csproj -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export/SSISDB.Export.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export/SSISDB.Export.snk -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export/SSISDB.Export.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export/SSISDB.Export.sql -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export/SSISDBExport.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export/SSISDBExport.cs -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/SSISDB.Export/sp_SSISExportProject.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/SSISDB.Export/sp_SSISExportProject.sql -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/TestApp/App.config: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/TestApp/App.config -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/TestApp/Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/TestApp/Program.cs -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/TestApp/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/TestApp/Properties/AssemblyInfo.cs -------------------------------------------------------------------------------- /SSISDB/SSISDB.Export/TestApp/TestApp.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB.Export/TestApp/TestApp.csproj -------------------------------------------------------------------------------- /SSISDB/SSISDB_Indexes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/SSISDB_Indexes.sql -------------------------------------------------------------------------------- /SSISDB/sp_SSISCloneConfiguration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_SSISCloneConfiguration.sql -------------------------------------------------------------------------------- /SSISDB/sp_SSISCloneEnvironment.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_SSISCloneEnvironment.sql -------------------------------------------------------------------------------- /SSISDB/sp_SSISClonePermissions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_SSISClonePermissions.sql -------------------------------------------------------------------------------- /SSISDB/sp_SSISCloneProject.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_SSISCloneProject.sql -------------------------------------------------------------------------------- /SSISDB/sp_SSISExportProject.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_SSISExportProject.sql -------------------------------------------------------------------------------- /SSISDB/sp_SSISListEnvironment.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_SSISListEnvironment.sql -------------------------------------------------------------------------------- /SSISDB/sp_SSISMapEnvironment.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_SSISMapEnvironment.sql -------------------------------------------------------------------------------- /SSISDB/sp_SSISResetConfiguraion.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_SSISResetConfiguraion.sql -------------------------------------------------------------------------------- /SSISDB/sp_ssisdb.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_ssisdb.sql -------------------------------------------------------------------------------- /SSISDB/sp_ssisstat.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/sp_ssisstat.sql -------------------------------------------------------------------------------- /SSISDB/usp_CheckConstraints.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/usp_CheckConstraints.sql -------------------------------------------------------------------------------- /SSISDB/usp_cleanup_key_certificates.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/usp_cleanup_key_certificates.sql -------------------------------------------------------------------------------- /SSISDB/usp_cleanup_server_retention_window.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/SSISDB/usp_cleanup_server_retention_window.sql -------------------------------------------------------------------------------- /Samples/DateTime/DayOfWeek.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/Samples/DateTime/DayOfWeek.sql -------------------------------------------------------------------------------- /Samples/DateTime/StartAndEndOfPeriods.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/Samples/DateTime/StartAndEndOfPeriods.sql -------------------------------------------------------------------------------- /Searching/sp_find.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/Searching/sp_find.sql -------------------------------------------------------------------------------- /TablesManagement/Partitioning/sp_HelpPartitionFunction.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/TablesManagement/Partitioning/sp_HelpPartitionFunction.sql -------------------------------------------------------------------------------- /TablesManagement/Partitioning/sp_HelpPartitionScheme.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/TablesManagement/Partitioning/sp_HelpPartitionScheme.sql -------------------------------------------------------------------------------- /TablesManagement/Partitioning/sp_tblCheckAndCreatePartitions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/TablesManagement/Partitioning/sp_tblCheckAndCreatePartitions.sql -------------------------------------------------------------------------------- /TablesManagement/Partitioning/sp_tblCleanupRetentionWindow.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/TablesManagement/Partitioning/sp_tblCleanupRetentionWindow.sql -------------------------------------------------------------------------------- /TablesManagement/Partitioning/sp_tblCreatePartitionFunction.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/TablesManagement/Partitioning/sp_tblCreatePartitionFunction.sql -------------------------------------------------------------------------------- /TablesManagement/Partitioning/sp_tblDropPartition.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/TablesManagement/Partitioning/sp_tblDropPartition.sql -------------------------------------------------------------------------------- /TablesManagement/Partitioning/sp_tblSwitchPartition.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/TablesManagement/Partitioning/sp_tblSwitchPartition.sql -------------------------------------------------------------------------------- /TablesManagement/Scripting/01-sp_tblScriptIndexes.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/TablesManagement/Scripting/01-sp_tblScriptIndexes.sql -------------------------------------------------------------------------------- /TablesManagement/Scripting/02-sp_tblScriptTable.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/TablesManagement/Scripting/02-sp_tblScriptTable.sql -------------------------------------------------------------------------------- /msdb/sp_ScheduleStatus.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/msdb/sp_ScheduleStatus.sql -------------------------------------------------------------------------------- /msdb/sp_jobstatus.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PavelPawlowski/SQL-Scripts/HEAD/msdb/sp_jobstatus.sql --------------------------------------------------------------------------------