C#实现数据库备份与还原(两种方法)

上传者: fiona_fhsw | 上传时间: 2019-12-21 19:44:36 | 文件大小: 540KB | 文件类型: rar
用C#写的实现数据库备份与还原的工程(VS2008下可直接运行,低于08的版本可以拷贝代码实现,记得要在COM中添加SQLSMO引用,本例数据库为SuperMarket,请更改为你所需备份的数据库),个人特意将两种方法放在同一工程内,Form1是直接用SQL语句实现的,Form2是使用SQLSMO实现的,还有进度条控制,界面也挺漂亮的,因为为了个人存档。

文件下载

资源详情

[{"title":"( 25 个子文件 540KB ) C#实现数据库备份与还原(两种方法)","children":[{"title":"BFHY","children":[{"title":"BFHY.suo <span style='color:#111;'> 15.50KB </span>","children":null,"spread":false},{"title":"BFHY.sln <span style='color:#111;'> 902B </span>","children":null,"spread":false},{"title":"BFHY","children":[{"title":"Form1.cs <span style='color:#111;'> 4.72KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"BFHY.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"BFHY.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"BFHY.csproj.ResolveComReference.cache <span style='color:#111;'> 579B </span>","children":null,"spread":false},{"title":"Interop.SQLDMO.dll <span style='color:#111;'> 928.00KB </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"BFHY.csproj.FileListAbsolute.txt <span style='color:#111;'> 187B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Resources","children":[{"title":"hy.bmp <span style='color:#111;'> 6.16KB </span>","children":null,"spread":false},{"title":"bf.bmp <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false},{"title":"hh.bmp <span style='color:#111;'> 17.07KB </span>","children":null,"spread":false},{"title":"Wallpaper.bmp <span style='color:#111;'> 3.75MB </span>","children":null,"spread":false}],"spread":true},{"title":"Form2.resx <span style='color:#111;'> 247.32KB </span>","children":null,"spread":false},{"title":"Form2.Designer.cs <span style='color:#111;'> 10.16KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 6.75KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 485B </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 5.45KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 247.32KB </span>","children":null,"spread":false},{"title":"Form2.cs <span style='color:#111;'> 4.78KB </span>","children":null,"spread":false},{"title":"BFHY.csproj <span style='color:#111;'> 4.57KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • MONKEY__ :
    不错,可以参考
    2019-09-14
  • 梦是一种奢侈 :
    用是可以用 但是7分有点贵 仅供参考 我自己重新做了一个demo地址 https://download.csdn.net/download/buxaingzhangda/11176162
    2019-05-15
  • Du_Feng_Love :
    可以使用~~~谢谢~~
    2017-01-13
  • shuiyuntian2009 :
    很好的资源,收啦,谢谢
    2017-01-05
  • maokofan :
    楼主用的是DMO,不是SMO,这个在用的时候需要安装向后兼容插件的。浪费了四分。。。。
    2016-11-18

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明