Backup Class Not Showing in Microsoft.SqlServer.Management.Smo Reference

一笑奈何 提交于 2019-12-01 08:14:33

问题


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

Microsoft.SqlServer.Management.Smo reference in my code.. but I can't see the Backup and Restore classes in this reference.


回答1:


I found the answer by my self. and that is

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

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

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

Now Select the following dlls

  • Microsoft.SqlServer.ConnectionInfo.dll
  • Microsoft.SqlServer.Management.Sdk.Sfc.dll
  • Microsoft.SqlServer.Smo.dll
  • Microsoft.SqlServer.SmoExtended.dll
  • Microsoft.SqlServer.SqlEnum.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



来源:https://stackoverflow.com/questions/19583746/backup-class-not-showing-in-microsoft-sqlserver-management-smo-reference

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!