我试图将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?
如果您使用的是sql azure,那么您的数据库项目应该以sql azure为目标,而不是sql 2014 –
错误的哪部分你不明白?看起来您正试图将SQL 2014部署到2012年目标。还有许多TSQL命令不适用于Azure,如default_language和**使用xxx **。 – MickyD
@CamBruce我刚刚查过,Azure在Windows Server 2012上确实有SQL 2014 – MickyD