我試圖將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