2011年11月8日

摘要: 这个比较好用,通用的工具类。 1 public class SortList<E>{ 2 public void sort(List<E> list, final String method, final String sort){ 3 Collections.sort(list, new Comparator() { 4 public int compare(Object a, Object b) { 5 int ret = 0; 6 ... 阅读全文
posted @ 2011-11-08 17:04 Tony_Shen 阅读(507) 评论(0) 推荐(0)
 
摘要: USE CASE 的编写:以下是一些怎么写USE CASE 的材料:http://www.gatherspace.com/static/use_case_example.html#5http://epf.eclipse.org/wikis/abrd/core.tech.common.extend_supp/guidances/examples/use_case_spec_CD5DD9B1.html 阅读全文
posted @ 2011-11-08 13:57 Tony_Shen 阅读(166) 评论(0) 推荐(0)
 
摘要: 1 select request_session_id spid,OBJECT_NAME(resource_associated_entity_id)tableName from sys.dm_tran_locks2 where resource_type='OBJECT'上面一句是查询死锁的表和进程Id下面一句是杀~~~~。kill spid 阅读全文
posted @ 2011-11-08 13:49 Tony_Shen 阅读(1265) 评论(0) 推荐(0)
 
摘要: 今天导出数据库到excel,碰到各种奇葩问题。最后找了个比较简单的方法,先全部查出来在复制粘贴一下是网上找的比较实用的sql 查询语句。 1 -- 查询非系统数据库 2 Select name FROM Master.. SysDatabases where dbid>4 3 4 -- 选择water数据库下的所有表 5 use [water] SELECT name FROM sysobjects WHERE xtype = 'U' Or xtype = 'S' 6 7 -- 选择water数据库下的所有用户... 阅读全文
posted @ 2011-11-08 13:46 Tony_Shen 阅读(1098) 评论(0) 推荐(0)