2017-02-22 79 views
0

我试图将SQL Server 2014项目的ASP.NET MVC部署到Azure。一旦部署,我收到以下错误:将项目与SQL Server 2014部署到Azure时出错

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];

我试图改变从Windows身份验证SQL Server时,我的本地SSMS的身份验证方法使用的用户名和密码,但我怀疑它有没有影响因为连接字符串在部署时被覆盖以使用Azure的连接字符串。

任何想法如何解决此问题并将此数据库部署到Azure?

+0

如果您使用的是sql azure,那么您的数据库项目应该以sql azure为目标,而不是sql 2014 –

+0

错误的哪部分你不明白?看起来您正试图将SQL 2014部署到2012年目标。还有许多TSQL命令不适用于Azure,如default_language和**使用xxx **。 – MickyD

+0

@CamBruce我刚刚查过,Azure在Windows Server 2012上确实有SQL 2014 – MickyD

回答

2

如果您使用的是Azure SQL数据库,那么您的数据库项目应该以sql azure为目标,而不是sql 2014.它们支持不同的功能集。

要更改数据库项目,请右键单击Visual Studio中的数据库项目,然后选择“属性”,然后在“项目设置”选项卡下将Target Platform更改为Microsoft Azure SQL Database V12

+1

这不是一个数据库项目,它是一个ASP.NET MVC应用程序。 – Royar

相关问题