我无法存储本地负载测试结果,也无法将Visual Studio Online中的负载测试结果导入Visual Studio 2015.我之前可以使用Visual Studio 2013在另一台计算机上执行此操作。
事件日志中的错误是:
(devenv.exe,PID 5824,Thread 59)WebLoadTestAdapter:异常 在SQL Server上调用SQL脚本loadtestresultsrepository.sql instance Data Source =(localdb)\ v11.0; Initial Catalog = master; Integrated Security = True:发生与网络相关或特定于实例的错误 同时建立与SQL Server的连接。服务器不是 发现或无法访问。验证实例名称是否正确 并且SQL Server配置为允许远程连接。 (提供者:SQL网络接口,错误:50 - 本地数据库运行时 发生了错误。无法创建自动实例。查看Windows 应用程序事件日志以获取错误详细信息。
我已按照此处的说明(https://msdn.microsoft.com/en-us/library/ms182600(v=vs.140).aspx)了解如何设置负载测试存储库,但它没有帮助......
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE>SQLCMD /S localhost\sqlexpress /i loadtestresultsrepository.sql
Changed database context to 'LoadTest2010'.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure LoadTestTransactionResults2, Line 2
There is already an object named 'LoadTestTransactionResults2' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure LoadTestPageResultsByNetwork2, Line 2
There is already an object named 'LoadTestPageResultsByNetwork2' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestPageComparison, Line 2
There is already an object named 'Prc_QueryLoadTestPageComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestTestComparison, Line 2
There is already an object named 'Prc_QueryLoadTestTestComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestTransactionComparison, Line 2
There is already an object named 'Prc_QueryLoadTestTransactionComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryComputedCounterComparison, Line 2
There is already an object named 'Prc_QueryComputedCounterComparison' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure prc_QueryForMachinesInRun, Line 2
There is already an object named 'prc_QueryForMachinesInRun' in the database.
Msg 2714, Level 16, State 3, Server MACHINE-NAME\SQLEXPRESS, Procedure Prc_QueryLoadTestErrorComparison, Line 2
There is already an object named 'Prc_QueryLoadTestErrorComparison' in the database.
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)
(1 rows affected)