Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to copy the database from SQL Server 2016 to SQL Server 2012. I am getting the version compatibility error.

What I have tried:

I even tried the command:
SQL
ALTER DATABASE VJ_DATABASE
SET COMPATIBILITY_LEVEL = 110;   
GO


But still I am getting same error. Can anyone please help me?
Posted
Updated 27-Feb-18 8:01am

1 solution

You can't: it's a different format database, and 2012 doesn't want to risk damaging the database so it can't be opened by the higher version.

You can back it up and try restoring it into 2012 as a copy, but you can;t directly use the later version file on an earlier version app.
 
Share this answer
 
Comments
Richard Deeming 27-Feb-18 14:07pm    
Backup and restore won't work either. The only option is to script the database objects, and bulk-copy the data.
Bryian Tan 27-Feb-18 14:48pm    
Based on my pass experiences, You're right. The only option is to use Generate Scripts for database object which is a pain in the butt because the objects were not being generated in correct order :(
webmail123 27-Feb-18 14:54pm    
Oh. I got it. Its a frustrating job. Seriously. :-(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900