09 2013 档案

摘要:启用Ad Hoc Distributed Queries: exec sp_configure 'show advanced options',1 reconfigure exec sp_configure 'Ad Hoc Distributed Queries',1 reconfigure 关闭Ad Hoc Distributed Queries: exec sp_configure 'Ad Hoc Distributed Queries',0 reconfigure exec sp_configure 'show advanced o 阅读全文
posted @ 2013-09-27 18:23 程序猿网友666 阅读(180) 评论(0) 推荐(0)
摘要:1.下载,官网地址:http://ueditor.baidu.com/website/download.html#ueditor我下载的.net utf-8的。2.解压缩后放入到项目中去3.在你要使用的地方调用吧,首先引用两段js,一个配置,一个ueditor1 2 4.然后就是对ueditor的初始化,以下代码中的temp是获取数据库内容信息 5.最后,就是保存数据的方法 附:我使用到的hd_content只是为了中转内容的。放在body的form内就行了。 总结:1.ueditor现在版本,路径真的不要再配置了,ueditor的开发者都... 阅读全文
posted @ 2013-09-15 22:00 程序猿网友666 阅读(704) 评论(0) 推荐(0)
摘要:/// <summary> /// 使用OLEDB读取excel和csv文件 /// </summary> /// <param name="path">文件所在目录地址</param> /// <param name="name">文件名</param> /// <returns></return 阅读全文
posted @ 2013-09-15 21:44 程序猿网友666 阅读(1156) 评论(0) 推荐(0)
摘要:// Specify the data source. int[] scores = new int[] { 97, 92, 81, 60 }; // Define the query expression. IEnumerable scoreQuery = from score in scores where score > 80 select score; // Execute the query. foreach (int i in scoreQu... 阅读全文
posted @ 2013-09-13 08:50 程序猿网友666 阅读(156) 评论(0) 推荐(0)
摘要:web.config配置 // 获取连接字符串 string _connectionString = System.Configuration.ConfigurationManager.AppSettings["ConnectionString"];SqlConnection _conn = new SqlConnection(_connectionString); string sql = "Select * from user "; //SqlCommand _cmd = new SqlCommand(sql, _conn); _co... 阅读全文
posted @ 2013-09-13 07:55 程序猿网友666 阅读(329) 评论(0) 推荐(0)
摘要:js 图片翻书效果。picture.htmlJS实现图片翻书效果--www.jbxue.compicture.css#center {LEFT: 50%; POSITION: absolute; TOP: 50%}#DHTMLBOOK {BACKGROUND: #000; LEFT: -210px; VISIBILITY: hidden; WIDTH: 210px; POSITION: relative; TOP: -160px; HEIGHT: 160px}#TXTBOX {FONT-SIZE: 0.8em; WIDTH: 210px; COLOR: #aba193; FONT-FAMILY 阅读全文
posted @ 2013-09-10 23:54 程序猿网友666 阅读(698) 评论(0) 推荐(0)
摘要:表达式DateDiff(timeinterval,date1,date2 [, firstdayofweek [, firstweekofyear]])允许数据类型: timeinterval 表示相隔时间的类型,代码为:年份 yy、yyyy 季度 qq、q月份 mm、m每年的某一日 dy、y日期 dd、d星期 wk、ww工作日 dw小时 hh分钟 mi、n秒 ss、s毫秒 ms 阅读全文
posted @ 2013-09-09 08:47 程序猿网友666 阅读(286) 评论(0) 推荐(0)
摘要:SQL报表语句 SQL获取今日、本周、本月数据本日:select * from table where datediff(dd,C_CALLTIME,getdate())=0 --C_CALLTIME 为日期字段本周:select * from table where datediff(week,C_CALLTIME,getdate())=0 --C_CALLTIME 为日期字段本月:select * from table where datediff(Month,C_CALLTIME,getdate())=0 --C_CALLTIME 为日期字段本季:select * from tabl.. 阅读全文
posted @ 2013-09-09 08:36 程序猿网友666 阅读(3323) 评论(0) 推荐(0)
摘要:本文转载于:http://hi.baidu.com/pei_ji_xiang/item/3838b637165c8121b3c0c5ee1.一道SQL语句面试题,关于group by表内容:2005-05-09 胜2005-05-09 胜2005-05-09 负2005-05-09 负2005-05-10 胜2005-05-10 负2005-05-10 负如果要生成下列结果, 该如何写sql语句? 胜 负2005-05-09 2 22005-05-10 1 2------------------------------------------create table #tmp(rq varch 阅读全文
posted @ 2013-09-09 08:14 程序猿网友666 阅读(265) 评论(0) 推荐(0)