【发布时间】:2015-09-08 19:08:45
【问题描述】:
我无法存储本地负载测试结果,也无法将负载测试结果从 Visual Studio Online 导入 Visual Studio 2015。我之前可以在另一台机器上使用 Visual Studio 2013 执行此操作。
而事件日志中的错误是:
(devenv.exe,PID 5824,线程 59)WebLoadTestAdapter:异常 在 SQL Server 上调用 SQL 脚本 loadtestresultsrepository.sql 实例数据源=(localdb)\v11.0;初始目录=master;集成 Security=True:发生了与网络相关或特定于实例的错误 在建立与 SQL Server 的连接时。服务器没有 找到或无法访问。验证实例名称是否正确 并且 SQL Server 配置为允许远程连接。 (提供者:SQL 网络接口,错误:50 - 本地数据库运行时 错误发生。无法创建自动实例。见窗 错误详情的应用程序事件日志。
我已按照此处 (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)
【问题讨论】:
-
我最近收到了类似的消息。单击“删除临时文件”按钮(如@Vicky 的答案所示)后,它对我有用。
标签: visual-studio-2015 load-testing sql-server-express azure-devops