03 2012 档案

摘要:GridView导出Excel的代码如下:if (this.GridView1.Rows.Count != 0) { HttpContext.Current.Response.Clear(); HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xls"); //这里是用日期做名称 HttpContext.C 阅读全文
posted @ 2012-03-31 10:51 读者4074 阅读(1237) 评论(0) 推荐(0)
摘要:http://wenku.baidu.com/view/3a2af8daa58da0116c174900.html 阅读全文
posted @ 2012-03-27 16:13 读者4074 阅读(149) 评论(0) 推荐(0)
摘要:在同一个数据库中对于已存在的表:insert into table_target(字段1,字段2....)select (字段1,字段2....) from table_source对于尚未建立的表:select (字段1,字段2....) into table_targetfrom table_source在两个数据库中最好两数据库拥有相同的登录名和密码不然比较麻烦insert into 目标数据库.dbo.目标表名(字段1...字段n) select 段1...字段n from 源数据库.dbo.源表名 或 select 段1...字段n into 目标数据库.dbo.目标表名 from 阅读全文
posted @ 2012-03-27 14:22 读者4074 阅读(2186) 评论(0) 推荐(0)