无法下载 Microsoft.SqlServer.BatchParser

发布于 2024-10-29 08:10:02 字数 1697 浏览 1 评论 0原文

我最近将系统从 Windows XP 升级到 Windows 7 64 位。我有一个 C# 应用程序,它在我的一台数据库服务器上加载并运行存储过程。该程序在 Windows XP 上成功运行,其中包含 VS.NET 2005 32 位、SQL Server 2005 Client SDK 和在 SQL Server 2005 上运行的服务器。

升级后,程序在下面的 ExecuteNonQuery 方法中失败

    Server server = new Server(new ServerConnection(conn));
    server.ConnectionContext.ExecuteNonQuery(script);

:已记录异常:

LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.SqlServer.BatchParser, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
LOG: Attempting download of new URL file:///C:/../Microsoft.SqlServer.BatchParser.DLL.
LOG: Attempting download of new URL file:///C:/../Debug/Microsoft.SqlServer.BatchParser/Microsoft.SqlServer.BatchParser.DLL.
LOG: Attempting download of new URL file:///C:/../Microsoft.SqlServer.BatchParser.EXE.
LOG: Attempting download of new URL file:///C:/../Microsoft.SqlServer.BatchParser/Microsoft.SqlServer.BatchParser.EXE.

我做了一些研究并发现了这些链接,它们似乎并不能完全回答我的问题:

  1. http: //social.msdn.microsoft.com/Forums/en/sqlsmoanddmo/thread/4b3bfde7-9ef5-42f5-8aa4-0e4612fc4901

  2. 找不到 microsoft.sqlserver.batchparser.dll

你们以前遇到过类似的问题吗?

I recently upgraded my system to Windows 7 64 bit from Windows XP. I had a C# application which loads and runs a stored procedure on one of my database server. This was successfully running on Windows XP with VS.NET 2005 32 bit, SQL Server 2005 Client SDK and server running on SQL Server 2005.

After upgrading, the program is failing at the ExecuteNonQuery method below:

    Server server = new Server(new ServerConnection(conn));
    server.ConnectionContext.ExecuteNonQuery(script);

The following exception has been logged:

LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Microsoft.SqlServer.BatchParser, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91
LOG: Attempting download of new URL file:///C:/../Microsoft.SqlServer.BatchParser.DLL.
LOG: Attempting download of new URL file:///C:/../Debug/Microsoft.SqlServer.BatchParser/Microsoft.SqlServer.BatchParser.DLL.
LOG: Attempting download of new URL file:///C:/../Microsoft.SqlServer.BatchParser.EXE.
LOG: Attempting download of new URL file:///C:/../Microsoft.SqlServer.BatchParser/Microsoft.SqlServer.BatchParser.EXE.

I did some research and found these links, which don't seem to quite answer my problem:

  1. http://social.msdn.microsoft.com/Forums/en/sqlsmoanddmo/thread/4b3bfde7-9ef5-42f5-8aa4-0e4612fc4901

  2. Can't find microsoft.sqlserver.batchparser.dll

Have any of you encountered similar issue before?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文