Universal Backup Database Enhancements: 2025-10-24
On 2025-10-24, the Universal Backup Database was Enhanced as Follows:
- Removed the Final_Extra_Content and Original_Extra_Content columns.
- Information that may have been stored in these columns now resides in the Source_Content columns.
Recent databases can be upgraded to the latest version by running the following script:
- DECLARE @SchemaName NVARCHAR(128);
- DECLARE @TableName NVARCHAR(128);
- DECLARE @ColumnName NVARCHAR(128);
- DECLARE @ConstraintName NVARCHAR(128);
- DECLARE @SQL NVARCHAR(MAX);
- -- Cursor to loop through dbo tables containing either of the two columns
- DECLARE DropCursor CURSOR FAST_FORWARD FOR
- SELECT
- s.name AS SchemaName,
- t.name AS TableName,
- c.name AS ColumnName
- FROM sys.columns c
- JOIN sys.tables t ON c.object_id = t.object_id
- JOIN sys.schemas s ON t.schema_id = s.schema_id
- WHERE c.name IN ('Original_Extra_Content', 'Final_Extra_Content')
- AND s.name = 'dbo'; -- 🔹 Only dbo schema
- OPEN DropCursor;
- FETCH NEXT FROM DropCursor INTO @SchemaName, @TableName, @ColumnName;
- WHILE @@FETCH_STATUS = 0
- BEGIN
- -- Find the default constraint (if any) for that column
- SELECT
- @ConstraintName = dc.name
- FROM sys.default_constraints dc
- INNER JOIN sys.columns c ON dc.parent_object_id = c.object_id AND dc.parent_column_id = c.column_id
- INNER JOIN sys.tables t ON c.object_id = t.object_id
- INNER JOIN sys.schemas s ON t.schema_id = s.schema_id
- WHERE c.name = @ColumnName
- AND s.name = @SchemaName
- AND t.name = @TableName;
- -- Drop the default constraint if found
- IF @ConstraintName IS NOT NULL
- BEGIN
- SET @SQL = N'ALTER TABLE [' + @SchemaName + '].[' + @TableName + '] DROP CONSTRAINT [' + @ConstraintName + '];';
- PRINT @SQL;
- EXEC sp_executesql @SQL;
- SET @ConstraintName = NULL;
- END
- -- Drop the column itself
- SET @SQL = N'ALTER TABLE [' + @SchemaName + '].[' + @TableName + '] DROP COLUMN [' + @ColumnName + '];';
- PRINT @SQL;
- EXEC sp_executesql @SQL;
- FETCH NEXT FROM DropCursor INTO @SchemaName, @TableName, @ColumnName;
- END
- CLOSE DropCursor;
- DEALLOCATE DropCursor;
Related Articles
Universal Backup Database Enhancements: 2024-09-02
On 2024-09-02, the Universal Backup Database was Enhanced as Follows: Added Action_Priority column to all tables Recent databases can be upgraded to the latest version by running the following script: EXEC sp_MSforeachtable ' ALTER TABLE ? ADD ...
Universal Backup Database Enhancements: 2024-09-18
On 2024-09-18, the Universal Backup Database was Enhanced as Follows: Renamed *_Role column on __M_Matters_Participating_Entities to *_Participant_Role Recent databases can be upgraded to the latest version by running the following script: exec ...
Universal Backup Database Enhancements: 2024-11-21
On 2024-11-21, the Universal Backup Database was Enhanced as Follows: Added "Subject" columns to Time, Expenses, and Fees Recent databases can be upgraded to the latest version by running the following script: ALTER TABLE ...
Universal Backup Database Enhancements: 2026-02-16
On 2026-02-16, the Universal Backup Database was enhanced with expanded logging capabilities. Recent databases can be upgraded to the latest version by running the following script: EXEC sp_MSforeachtable ' ALTER TABLE ? ADD Log_Updated_At ...
Universal Migrator Update: 2025-04-01
If you have a Universal Backup database from a previous version of Universal Migrator, you will need to upgrade it by following the Delta Migration Procedure. New Backup Tools Universal Migrator now includes Backup options for the following ...