程序员的部落

导航

随笔分类 -  数据库操作

代码实现ASP.NET数据库的备份和还原
摘要://数据库备份 protected void btnBackup_Click(object sender, EventArgs e) { string bakname = "cc"; ... 阅读全文

posted @ 2009-04-02 10:16 程序员的部落 阅读(246) 评论(0) 推荐(0)

DataSet导出为Excel
摘要:protected void Button1_Click(object sender, EventArgs e) { DataSet ds = new BLL.TrafficLine().GetAllList(); DataTable dt = ds.Tables[0]; string url = "D:\\"... 阅读全文

posted @ 2009-04-02 10:15 程序员的部落 阅读(193) 评论(0) 推荐(0)

Excel数据导入到MsSQL数据库中
摘要:protected void Button3_Click(object sender, EventArgs e) { string conn = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source ='D:\\ccd.xls';Extended Properties='Excel 8.0;HDR... 阅读全文

posted @ 2009-04-02 10:15 程序员的部落 阅读(377) 评论(0) 推荐(0)