简体   繁体   中英

Error deploying project with SQL Server 2014 to Azure

I'm trying to deploy an ASP.NET MVC with SQL Server 2014 project to Azure. Upon deploying, I'm getting the following error:

Web deployment task failed. (Could not deploy package. Warning SQL0: A project which specifies SQL Server 2014 as the target platform may experience compatibility issues with Microsoft Azure SQL Database v12. Warning SQL72030: The project and target databases have different collation settings. Deployment errors might occur. Error SQL72014: .Net SqlClient Data Provider: Msg 40517, Level 16, State 1, Line 2 Keyword or statement option 'default_language' is not supported in this version of SQL Server. Error SQL72045: Script execution error. The executed script: CREATE LOGIN [IIS APPPOOL\\DefaultAppPool] FROM WINDOWS WITH DEFAULT_LANGUAGE = [us_english];

I've tried changing the authentication method in my local SSMS from Windows authentication to SQL Server, using username and password, but as I suspected it had no effect, since the connection string is overridden to use Azure's connection string anyway upon deployment.

Any idea how to solve this issue and deploy this database to Azure?

If you're using Azure SQL Database, then your database project should target sql azure, not sql 2014. they support different feature sets.

To change in your database project, right click your DB project in Visual Studio and choose Properties, then under the project settings tab, change the Target Platform to Microsoft Azure SQL Database V12 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM