C#命名空间用于SQL管理,用于sql服务器备份

发布于 2024-10-06 00:36:23 字数 245 浏览 0 评论 0原文

我正在尝试使用 C# .NET 3.5/4.0 实用地运行 SQL Server 数据库的备份。我已经找到了如何完成此操作,但是我似乎找不到用于备份的命名空间库。

我正在寻找 Microsoft.SqlServer.Management 库,但我在任何地方都找不到这些库。我已经安装了 SQL Server 2005 Enterprise,所有工具示例和库似乎仍然没有出现在 Visual Studio(2010 版)中。

感谢任何输入,谢谢。

I am trying to pragmatically run a backup of an SQL Server database using C# .NET 3.5/4.0. I have found out how to accomplish this, however I can't seem to find the namespace libraries that are used for the backup.

I am looking for the Microsoft.SqlServer.Management libraries, I just can't find these anywhere. I have installed SQL Server 2005 Enterprise and all of the tools samples and the libraries still don't seem to appear in visual studio (version 2010)

Any input is appreciated, thanks.

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

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

发布评论

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

评论(2

薄情伤 2024-10-13 00:36:23

您可以在以下位置找到它们:

“C:\Program Files (x86)\Microsoft SQL
服务器\100\SDK\Assemblies"

(这是在我的 SQL 2008 64 位机器上。)
您需要以下全部三个程序集:

  • Microsoft.SqlServer.Smo.dll
  • Microsoft.SqlServer.SqlEnum.dll
  • Microsoft.SqlServer.SmoEnum.dll

http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo(v= SQL.90).aspx

You will find them under:

"C:\Program Files (x86)\Microsoft SQL
Server\100\SDK\Assemblies"

(Thats on my 64-bit machine for SQL 2008.)
You need all three of the following assemblies:

  • Microsoft.SqlServer.Smo.dll
  • Microsoft.SqlServer.SqlEnum.dll
  • Microsoft.SqlServer.SmoEnum.dll

http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo(v=SQL.90).aspx

很酷不放纵 2024-10-13 00:36:23

SMO 等程序集位于 C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies 下(根据您的计算机和 SQL Server 版本的适当位数进行调整 - 我认为 2005 年将是 <代码>\90\ 而不是 \100\

The Assemblies for SMO and the like exist under C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies (adjust for appropriate bitness of your machine and SQL Server version - I think 2005 would be \90\ rather than \100\

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