2015-09-08 104 views
0

我無法存儲本地負載測試結果,也無法將Visual Studio Online的負載測試結果導入到Visual Studio 2015中。我之前可以執行此操作,在不同的機器,與Visual Studio 2013年無法將負載測試結果導入到Visual Studio 2015中

我得到的錯誤可以在這裏看到:error screen-shot

和錯誤的事件日誌:

(devenv.exe, PID 5824, Thread 59) WebLoadTestAdapter: Exception invoking SQL script loadtestresultsrepository.sql on SQL Server instance Data Source=(localdb)\v11.0;Initial Catalog=master;Integrated Security=True: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.

我在這裏操作指導( https://msdn.microsoft.com/en-us/library/ms182600(v=vs.140).aspx)如何設置負載te ST程序存儲庫,但它並沒有幫助...

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) 
+0

我最近有一個類似的消息。點擊「刪除臨時文件」按鈕(如@ Vicky的答案所示),它對我很有用。 – AdrianHHH

回答

0

您需要:

1)。確保MACHINE-NAME \ SQLEXPRESS服務正在運行,並且您可以在VS中的服務器資源管理器中檢查LoadTest2010數據庫。 2)。確保本地測試結果存儲針對MACHINE-NAME \ SQLEXPRESS服務中的LoadTest2010數據庫:右鍵單擊Load Test Editor中的負載測試,然後選擇管理測試控制器。請確保您選擇了正確的sql服務並且測試連接是成功enter image description here

+0

謝謝,由於某種原因,連接屬性中的「服務器名稱」被設置爲localdb \ v11.0。將其更改爲。\ SQLEXPRESS解決了問題。 –

相關問題