使用 sql 2005 安装应用程序的支持文件,其中服务器位于另一台计算机上

发布于 2024-08-05 15:39:29 字数 603 浏览 5 评论 0原文

我有一个托管 C++ 应用程序,它通过网络连接到同一台计算机上的 SQL Server 2005 Express 数据库。我的问题是,如果数据库位于网络上的另一台计算机上,客户端计算机将不会从 SQL Server 安装所需的 DLL 文件。

我不能强迫我的用户在客户端计算机上安装 SQL Server 2005 Express,只是为了获取所需的支持文件。所以我的问题是,将依赖文件安装到用户计算机上的 GAC 中是否安全?或者,MS 是否有专门用于此目的的命令行安装包?

我的应用程序显示为依赖的 SQL Server 中的文件如下:

Microsoft.SqlServer.BatchParser Microsoft.SqlServer.ConnectionInfo Microsoft.SqlServer.RegSvrEnum Microsoft.SqlServer.复制 微软SqlServer.Rmo Microsoft.SqlServer.ServiceBrokerEnum 微软SqlServer.Smo Microsoft.SqlServer.SmoEnum Microsoft.SqlServer.WmiEnum

如果有帮助,我将使用 Inno-Setup 程序作为我的安装程序。这应该是一个普遍的问题。

I have a managed C++ application that connects to SQL Server 2005 Express databases on the same computer and over a network. My problem is that if the database is located on another computer over the network, the client machine will not have the needed DLLs files installed from SQL Server.

I can't force my users to install SQL Server 2005 Express on the client machine just to get the needed support files. So my question is, is it safe to installed the dependent files to the GAC on the user's computer? Or, does MS have a command line install package for just this purpose?

The files from SQL Server that my application show as being dependent on are as follows:

Microsoft.SqlServer.BatchParser
Microsoft.SqlServer.ConnectionInfo
Microsoft.SqlServer.RegSvrEnum
Microsoft.SqlServer.Replication
Microsoft.SqlServer.Rmo
Microsoft.SqlServer.ServiceBrokerEnum
Microsoft.SqlServer.Smo
Microsoft.SqlServer.SmoEnum
Microsoft.SqlServer.WmiEnum

If it helps, I'm using the Inno-Setup program for my installer. This has to be a common problem.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

客…行舟 2024-08-12 15:39:29

您不必安装完整版本的 SQL Server,但确实需要必要的驱动程序。在客户端上安装 SQL 2008 SMO 包应该可以解决这些问题。

http://www.microsoft.com/downloads/details.aspx microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&displaylang=en

You dont have to install the full version of SQL Server, but you do need the necessary drivers. Installing the SQL 2008 SMO package on the client should resolve these issues.

http://www.microsoft.com/downloads/details.aspx?FamilyId=C6C3E9EF-BA29-4A43-8D69-A2BED18FE73C&displaylang=en

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文