user2191393
user2191393

Reputation: 123

Unable to compare database schema using SSDT Visual studio 2012 "Unable to determine the database platform type. The database may be unavailable.."

I have created database project in Visual studio 2012 Version 11.0.60610.01 Update 3. I am using this database project for comparing and publishing database on SQL Server 2008 R2 Version 10.50.4000.0

My database project target platform was set to SQL Server 2008.

My SSDT version is 11.1.20627.00

Now my SQL Server version upgraded to SQL Sever 2012 Version 12.0.2000.8

After that i changed my database project target platform to SQL Server 2012.

But it is not allowing me to compare database schema or publish database.

It throws following error

Error 345 Validation error in the target: DB_Name Unable to determine the database platform type. The database may be unavailable..

I have also checked from Edit Connection wizard using Test Connection button that database connection is successful.

Can anybody please help me on this? Is there any more configuration i need to set for changing database platform type?

Upvotes: 9

Views: 10933

Answers (3)

Aamol
Aamol

Reputation: 1199

Database schema compare error in visual studio 2013 Message: Unable to determine platform type.

Full Error: Validation error in the source: db_name : Unable to determine the database platform type. The database may be unavailable.. SqlSchemaCompare1 0 0

Causes: SQL server unmatched.

Solution: SSDT updates for visual studio. So go to Tools, Extension and updates.. Reference

Upvotes: 0

Raj Kumar - rajkrs
Raj Kumar - rajkrs

Reputation: 1363

SQL server version unmatched Update VS with SQL Tooling extension How to update extension

Upvotes: 1

Kevin Cunnane
Kevin Cunnane

Reputation: 8110

Version 12.0.2000.8 of SQL Server actually means you're on SQL Server 2014. It's confusing but SQL Server 2012 == Version 11, SQL Server 2014 == Version 12.

To resolve this, please update the SQL Server tooling in Visual Studio 2012 to be SQL Server 2014 compatible per the instructions here. For VS2012 the SQL Server updates aren't built-in, happily from VS2013 onwards the updates show up automatically through the Visual Studio update mechanism.

Upvotes: 16

Related Questions