首先确保:
1.你的服务器只有一个实例。
2.实例上面有testdb这个库。
3.你当前的windows帐号权限够高,比如administrator

解决方案 »

  1.   

    To resolve this, follow the steps below:1. Run Command Prompt and find the location of the DLL using    > dir Microsoft.SqlServer.Diagnostics.STrace.dll /s2. Copy the location with the DLL name.3. Run VS 2008 Command Prompt as Administrator.4. Execute the following    GACUTIL –i “{Location of Microsoft.SqlServer.Diagnostics.STrace.dll} found at step 1”
    或者重装Visual studio