ALTER DATABASE database_name SET COMPATIBILITY_LEVEL = 110
How do I change the version of my SQL Server instance?
-
06-06-2023 - |
Question
i am using sql server 2012 express.But when i execute '@@version' query it is showing "Microsoft SQL Server 2005 - 9.00.3042.00" and most of the queries like 'fetch' is not working anymore.How can i change the database engine back to sql server 2012?
Solution
OTHER TIPS
i think you are talking about server not database. if its database you can go ahead by changing db compatibility
if your version is showing 2005 instead 2012 , check version of sql server.exe , seems your version is not modified while upgrading. Advice to re-run setup , if this doesnt detect sql server then apply sql 2012 service pack SP1. this will update registry and dlls.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow