会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
为乐而来
我们不生产代码,我们只是搜索引擎的搬运工,纯天然的弱咸性代码,让你运用自如。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
12
13
14
15
16
17
18
19
20
···
25
下一页
2015年4月2日
查询sql数据库中表占用的空间大小
摘要: 最近在给一家客户做系统维护时,需要查看数据库表的大小,相关的sql如下: 先在左上角下拉框中选对要查的数据库再执行以下语句 1. exec sp_spaceused '表名' --(SQL统计数据,大量事务操作后可能不准)2. exec sp_spaceused '表名', true --(准确的表
阅读全文
posted @ 2015-04-02 17:56 为乐而来
阅读(1031)
评论(0)
推荐(0)
2015年3月31日
清理sql2012数据库日志
摘要: --1.先把数据库设置为简单模式(右击数据库名->点'属性'->点'选项'->恢复模式改成'简单'->点'确定'按钮,--2.再执行下面的语句(或者右击数据库点'任务'->'收缩'->'文件',文件件类型选'日志',再点'确定'按钮)use [dbname]checkpointDBCC SHRINK...
阅读全文
posted @ 2015-03-31 14:58 为乐而来
阅读(955)
评论(0)
推荐(0)
2015年3月6日
完美解决distinct中使用多个字段的方法
摘要: 众所周知,distinct可以列出不重复的记录,对于单个字段来说distinct使用比较简单,但是对于多个字段来说,distinct使用起来会使人发狂。而且貌似也没有见到微软对distinct使用多字段的任何说明。下面就提供了一种方法可以在使用distinct的时候同时使用多个字段。select 要...
阅读全文
posted @ 2015-03-06 14:28 为乐而来
阅读(6661)
评论(1)
推荐(1)
2015年2月28日
.net面式题
摘要: .Nethttphandler与httpmodule区别动态控件在postback能否保存下来(不能)序列化(对象到其他格式(xml/json/byte...)JavaScriptSerializer jss = new JavaScriptSerializer();return jss.Seria...
阅读全文
posted @ 2015-02-28 12:06 为乐而来
阅读(672)
评论(0)
推荐(0)
2015年1月8日
.net多站点通过StateServer实现session共享
摘要: 先在所有要共享站点web.config的结点下加 新建一个类库项目代码如下using System.Web; using System; using System.Configuration; using System.Diagnostics; using Syst...
阅读全文
posted @ 2015-01-08 11:48 为乐而来
阅读(485)
评论(0)
推荐(0)
2014年12月11日
.net 数据绑定gridview 和Repeater 序号,Container.ItemIndex
摘要: gridview Repeater:
阅读全文
posted @ 2014-12-11 16:54 为乐而来
阅读(309)
评论(0)
推荐(0)
2014年11月14日
js实现table用鼠标改变td的宽度,固定table宽度和高度超过显示点
摘要: table 用户编号 试用时间 转正时间 性别 姓名拼音 ...
阅读全文
posted @ 2014-11-14 14:25 为乐而来
阅读(2496)
评论(0)
推荐(0)
2014年9月17日
.aspx、MasterPage、.ascx加载顺序
摘要: 1. Master page中的用户控件的 page_init2. Aspx页面中的用户控件的 page_init3. Master page的page_init4. Aspx的 page_init5. Aspx的page_load6. Master page的page_load7. Master ...
阅读全文
posted @ 2014-09-17 14:02 为乐而来
阅读(338)
评论(0)
推荐(0)
2014年4月25日
IIS删除http header信息如Server, X-Powered-By, 和X-AspNet-Version
摘要: 响应头信息原始头信息Cache-ControlprivateContent-Length78457Content-Typetext/html; charset=utf-8DateFri, 25 Apr 2014 06:19:18 GMTServerMicrosoft-IIS/7.5X-AspNet-...
阅读全文
posted @ 2014-04-25 14:33 为乐而来
阅读(1913)
评论(0)
推荐(0)
2014年4月17日
基于Asp.net C#实现HTML转图片(网页快照)
摘要: 一、实现方法//WebSiteThumbnail.cs文件,在BS项目中需要添加对System.Windows.Forms的引用using System;using System.Data;using System.Configuration;using System.Web;using Syste...
阅读全文
posted @ 2014-04-17 15:00 为乐而来
阅读(3590)
评论(0)
推荐(3)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
25
下一页
公告