遇到Load Test相关数据库报错

---------------------------
Microsoft Visual Studio
---------------------------
The load test results database could not be opened. Check that the load test results database specified by the connect string for your test controller (or local machine) specifies a database that contains the load test schema and that is currently available. For more information, see the Visual Studio help topic 'About the Load Test Results Store'. The connection error was: 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: 26 - Error Locating Server/Instance Specified)
---------------------------
OK
---------------------------

- 方法一:可尝试在保持测试结论的数据库实例手动执行C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\oadtestresultsrepository.sql

- 方法二:Detach原LoadTest2010数据库后重新Attach

Microsoft Visual Studio 2010 Load Test Feature Pack安装排错

- 方法三:修改数据库保存的配置

  1. 从“Test”菜单中单击“Manage Test Controllers”。此时将显示“Manage Test Controller”对话框。如果要远程使用代理,则必须选择一个控制器。


Microsoft Visual Studio 2010 Load Test Feature Pack安装排错

  1. 在“Load test results store”中单击 (…),以显示“Connection Properties”对话框。

  2. 在“Server Name”中,键入在其中运行 LoadTest 脚本的服务器的名称。

  3. 在“Log on to the server”下,可以选择“Windows Authentication”。可以指定用户名和密码,但是如果要指定就必须选择“Save password”选项。

  4. 在“Test Connection”下,选择“Select or enter a database name”。从下拉列表框中选择“LoadTest2010”。

  5. 单击“OK”。通过单击“Test Connection”可以测试该连接。

  6. 在“Manage Test Controller”对话框中单击“Close”。