2014 更新后无法发布到 Azure
Unable to publish to Azure after 2014 update
我有一个 APS.net MVC 项目,我已经发布到 Azure 一段时间了。我最近更换了笔记本电脑并移至 SQL Server 2014。现在,当我尝试发布时出现 3 个错误。第一个看起来是根课程:
Error 3 .Net SqlClient Data Provider: Msg 2812, Level 16, State 62, Line 1 Could not find stored procedure 'sp_addextendedproperty'
其他 2 个错误是:
Error 4 Script execution error. The executed script:
EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
End
Begin PaneConfiguration = 1
NumPanes = 3
Configuration = "(H (1 [50] 4 [25] 3))"
End
Begin PaneConfiguration = 2
NumPanes = 3
Configuration = "(H (1 [50] 2 [25] 3))"
End
Begin PaneConfiguration = 3
NumPanes = 3
Configuration = "(H (4 [30] 2 [40] 3))"
End
Begin PaneConfiguration = 4
NumPanes = 2
Configuration = "(H (1 [56] 3))"
End
Begin PaneConfiguration = 5
NumPanes = 2
Configuration = "(H (2 [66] 3))"
End
Begin PaneConfiguration = 6
NumPanes = 2
Configuration = "(H (4 [50] 3))"
End
Begin PaneConfiguration = 0 0 AMScan
和
Error 5 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.
Error SQL72014: .Net SqlClient Data Provider: Msg 2812, Level 16, State 62, Line 1 Could not find stored procedure 'sp_addextendedproperty'.
Error SQL72045: Script execution error. The executed script:
EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
End
Begin PaneConfiguration = 1
NumPanes = 3
Configuration = "(H (1 [50] 4 [25] 3))"
End
Begin PaneConfiguration = 2
NumPanes = 3
Configuration = "(H (1 [50] 2 [25] 3))"
End
Begin PaneConfiguration = 3
NumPanes = 3
Configuration = "(H (4 [30] 2 [40] 3))"
End
Begin PaneConfiguration = 4
NumPanes = 2
Configuration = "(H (1 [56] 3))"
End
Begin PaneConfiguration = 5
NumPanes = 2
Configuration = "(H (2 [66] 3))"
End
Begin PaneConfiguration = 6
NumPanes = 2
Configuration = "(H (4 [50] 3))"
End
Begin PaneConfiguration =
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXECUTING_METHOD.) 0 0 AMScan
做一些研究我了解到 2014 年有某些扩展的存储过程在 Azure 中不可用 SQL 但是似乎许多早期版本都是这种情况,包括我以前使用的 2012 .
关于如何解决这个问题的任何想法。
干杯,
凯文。
有multiple options个可以给你,但我认为下面2个最能满足你的需求:
- 集成在 Visual Studio 你有 SQL Server Data Tools. When you switch the target for the deployment to Azure SQL DB you'll get the list of incompatibilities, which you can then fix in the project.
Details on how to move a DB to Azure with SSDT: https://msdn.microsoft.com/en-us/library/azure/jj156163.aspx
- 使用SQL Server Migration Wizard。此工具将检查您的数据库,允许您 select 要迁移的项目,然后为您生成迁移脚本。
有关如何使用它的更多详细信息:
http://blogs.msdn.com/b/prasanna/archive/2015/04/13/migrating-sql-server-on-premise-db-to-sql-azure-using-sql-server-migration-wizard.aspx and https://msdn.microsoft.com/en-us/library/azure/jj156166.aspx
我有一个 APS.net MVC 项目,我已经发布到 Azure 一段时间了。我最近更换了笔记本电脑并移至 SQL Server 2014。现在,当我尝试发布时出现 3 个错误。第一个看起来是根课程:
Error 3 .Net SqlClient Data Provider: Msg 2812, Level 16, State 62, Line 1 Could not find stored procedure 'sp_addextendedproperty'
其他 2 个错误是:
Error 4 Script execution error. The executed script:
EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
End
Begin PaneConfiguration = 1
NumPanes = 3
Configuration = "(H (1 [50] 4 [25] 3))"
End
Begin PaneConfiguration = 2
NumPanes = 3
Configuration = "(H (1 [50] 2 [25] 3))"
End
Begin PaneConfiguration = 3
NumPanes = 3
Configuration = "(H (4 [30] 2 [40] 3))"
End
Begin PaneConfiguration = 4
NumPanes = 2
Configuration = "(H (1 [56] 3))"
End
Begin PaneConfiguration = 5
NumPanes = 2
Configuration = "(H (2 [66] 3))"
End
Begin PaneConfiguration = 6
NumPanes = 2
Configuration = "(H (4 [50] 3))"
End
Begin PaneConfiguration = 0 0 AMScan
和
Error 5 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.
Error SQL72014: .Net SqlClient Data Provider: Msg 2812, Level 16, State 62, Line 1 Could not find stored procedure 'sp_addextendedproperty'.
Error SQL72045: Script execution error. The executed script:
EXECUTE sp_addextendedproperty @name = N'MS_DiagramPane1', @value = N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[40] 4[20] 2[20] 3) )"
End
Begin PaneConfiguration = 1
NumPanes = 3
Configuration = "(H (1 [50] 4 [25] 3))"
End
Begin PaneConfiguration = 2
NumPanes = 3
Configuration = "(H (1 [50] 2 [25] 3))"
End
Begin PaneConfiguration = 3
NumPanes = 3
Configuration = "(H (4 [30] 2 [40] 3))"
End
Begin PaneConfiguration = 4
NumPanes = 2
Configuration = "(H (1 [56] 3))"
End
Begin PaneConfiguration = 5
NumPanes = 2
Configuration = "(H (2 [66] 3))"
End
Begin PaneConfiguration = 6
NumPanes = 2
Configuration = "(H (4 [50] 3))"
End
Begin PaneConfiguration =
Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_EXECUTING_METHOD.) 0 0 AMScan
做一些研究我了解到 2014 年有某些扩展的存储过程在 Azure 中不可用 SQL 但是似乎许多早期版本都是这种情况,包括我以前使用的 2012 .
关于如何解决这个问题的任何想法。
干杯, 凯文。
有multiple options个可以给你,但我认为下面2个最能满足你的需求:
- 集成在 Visual Studio 你有 SQL Server Data Tools. When you switch the target for the deployment to Azure SQL DB you'll get the list of incompatibilities, which you can then fix in the project.
Details on how to move a DB to Azure with SSDT: https://msdn.microsoft.com/en-us/library/azure/jj156163.aspx - 使用SQL Server Migration Wizard。此工具将检查您的数据库,允许您 select 要迁移的项目,然后为您生成迁移脚本。
有关如何使用它的更多详细信息: http://blogs.msdn.com/b/prasanna/archive/2015/04/13/migrating-sql-server-on-premise-db-to-sql-azure-using-sql-server-migration-wizard.aspx and https://msdn.microsoft.com/en-us/library/azure/jj156166.aspx