Troubleshooting Guide: SQL Server Error 12510 – Table Clone Feature Not Supported
Why This Error Happens
Error 12510 occurs when the DBCC CLONEDATABASE command encounters a table or database feature that the table clone engine does not know how to replicate into the schema-only clone. This typically happens with newer or specialized features—such as certain memory-optimized table configurations, specific columnstore index variants, or newly introduced SQL Server 2025 features—that have not been fully integrated into the cloning subsystem. It can also surface when the source database is in a mixed-compatibility state after an in-place upgrade, leaving metadata that the clone operation cannot interpret correctly.
Step-by-Step Resolution Guide
Step 1: Identify the Unsupported Feature and Object
- Run the
DBCC CLONEDATABASEcommand again and capture the full error message, including the%.*lsplaceholder text, which names the specific feature. - Query
sys.tables,sys.indexes, andsys.columnson the source database to locate objects using features like In-Memory OLTP, Stretch Database, or specific Columnstore configurations. - Cross-reference the feature name against the Microsoft Docs “Limitations of DBCC CLONEDATABASE” article for SQL Server 2025 to confirm it is a known exclusion.
Step 2: Remove or Isolate the Unsupported Object Before Cloning
- Script out the unsupported table or index definition using SSMS (
Generate Scriptswizard) for later reference. - Temporarily drop or disable the specific feature (e.g., disable a memory-optimized filegroup reference or an unsupported index type) on a copy of the database, not the production source.
- Re-run
DBCC CLONEDATABASE ('SourceDB', 'ClonedDB');against the modified copy to confirm the clone completes successfully without that object.
Step 3: Update SQL Server to the Latest Cumulative Update
- Open
SQL Server Configuration Managerand verify the current build version under SQL Server Services. - Download and install the latest Cumulative Update (CU) for SQL Server 2025 from the Microsoft Update Catalog, as clone engine compatibility fixes are frequently patched in CUs.
- After patching, restart the
MSSQLSERVERservice viaservices.mscor runnet stop MSSQLSERVER && net start MSSQLSERVERfrom an elevated Command Prompt.
Step 4: Rebuild Affected Indexes or Convert Unsupported Table Types
- For Columnstore or In-Memory OLTP conflicts, convert the table to a standard rowstore/disk-based table using
ALTER TABLEsyntax if business requirements allow. - Rebuild any fragmented or legacy-format indexes using
ALTER INDEX ALL ON [TableName] REBUILD;to ensure metadata aligns with SQL Server 2025 clone requirements. - Validate database compatibility level using
ALTER DATABASE [SourceDB] SET COMPATIBILITY_LEVEL = 170;to ensure it matches the SQL Server 2025 engine level.
Alternative or Verification Steps
- Verify the fix by executing
DBCC CLONEDATABASE ('SourceDB', 'VerifyClone') WITH VERIFY_CLONEDB;and confirm it completes with a success message and no Error 12510. - If the unsupported feature cannot be removed (e.g., it is business-critical), use a traditional backup-and-restore or
Export Data-tier Application(BACPAC) method instead ofDBCC CLONEDATABASEto capture the schema and statistics for troubleshooting purposes.