备份类在Microsoft.SqlServer.Management.Smo REFFERENCE不显示 [英] Backup Class Not Showing in Microsoft.SqlServer.Management.Smo Refference

查看:242
本文介绍了备份类在Microsoft.SqlServer.Management.Smo REFFERENCE不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要添加备份和C#Windows窗体应用程序恢复功能。为了这个,我插入

I want to add Backup and Restore Functionality in C# Windows Form Application. for this i inserted

在我的代码Microsoft.SqlServer.Management.Smo参考..但我不能看到备份并在此引用恢复课程。

Microsoft.SqlServer.Management.Smo reference in my code.. but i cant see the Backup and Restore classes in this reference.

请帮我。

推荐答案

我发现我的自我答案。那就是

I found the answer by my self. and that is

有关使用备份和SMO的恢复类,则需要5 reffereces。

for using Backup and restore class of SMO we need to 5 reffereces.

去你的应用与右键单击引用文件夹并选择Add Reference

Go to Your Application and Right Click on References folder and select Add Reference.

现在转到浏览选项卡,请浏览以下path- C:\计划Files\Microsoft SQL Server\110\SDK\Assemblies

Now Go to "Browse" Tab and browse the following path- C:\Program Files\Microsoft SQL Server\110\SDK\Assemblies

现在选择下列DLL


  • Microsoft.SqlServer.ConnectionInfo.dll

  • Microsoft.SqlServer.Management.Sdk.Sfc.dll

  • Microsoft.SqlServer.Smo.dll

  • Microsoft.SqlServer.SmoExtended.dll

  • Microsoft.SqlServer.SqlEnum.dll

  • Microsoft.SqlServer.ConnectionInfo.dll
  • Microsoft.SqlServer.Management.Sdk.Sfc.dll
  • Microsoft.SqlServer.Smo.dll
  • Microsoft.SqlServer.SmoExtended.dll
  • Microsoft.SqlServer.SqlEnum.dll

我已经第一,但备份只增加了这个(Microsoft.SqlServer.Smo.dll)参考和恢复,我们也需要这个(微软课程。 SqlServer.SmoExtended.dll)参考

I have added only this (Microsoft.SqlServer.Smo.dll) reference first but for Backup and Restore classes we also need this (Microsoft.SqlServer.SmoExtended.dll) reference

这篇关于备份类在Microsoft.SqlServer.Management.Smo REFFERENCE不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆