Dec 11

刚安装了SQL SERVER 2008,进入SSMS时以及导入数据时会出错:

Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.

纠其原因是因为缺少必须的文件,从此http://download.csdn.net/download/cheng518/4103855下载Microsoft.SqlServer.Diagnostics.STrace.DLL的压缩包,把最高版本号的那个DLL解压到本地文件夹中,我把它放在C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE目录下。

然后点击Start Menu --> Programs --> Visual Studio 2010 --> Visual Studio Tools --> Visual Studio Command Prompt (2010) 进入命令行模式,运行如下命令: 

GACUTIL –i “C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Microsoft.SqlServer.Diagnostics.STrace.DLL"

等待一段时间后系统会报告指定的DLL已经注册好。然后再进入SSMS,错误报告消失。

分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]