SQL2005清空删除日志:复制代码 代码如下:Backup Log DNName with no_log--'这里的DNName是你要收缩的数据库名,自己注意修改下面的数据库名,我就不再注释了。go dump transaction DNName with no_log go USE DNName...
分类:
数据库 时间:
2014-09-14 00:06:06
阅读次数:
332
扩展Puppet – 建立Puppet CA集群(1votes, average:5.00out of 5)588 views 2012 年 3 月 4 日Puppet、运维ca、master、puppet、集群jsxubar扩展Puppet的一种方式是将Puppet Master的CA功能分离出去...
分类:
其他好文 时间:
2014-09-14 00:01:36
阅读次数:
401
本章内容要点:1.Transaction Script模式组织业务逻辑2.Active Record模式和Castle Windsor来组织业务逻辑3.Domain Model模式来组织业务逻辑4.Anemic Model模式和Domain Model 来组织业务逻辑的差异5.理解领域驱动设计DDD...
分类:
Web程序 时间:
2014-09-10 09:25:50
阅读次数:
308
LINK With the Entity Framework most of the time SaveChanges() is sufficient. This creates a transaction, or enlists in any ambient transaction, and do...
分类:
其他好文 时间:
2014-09-09 11:59:48
阅读次数:
160
http://www.cnblogs.com/Kymo/archive/2008/05/14/1194161.html先看一下SQL Server Online Help相关的说明Begin Transaction:标记一个显式本地事务的起始点。BEGIN TRANSACTION 使 @@TRANC...
分类:
数据库 时间:
2014-09-09 11:23:18
阅读次数:
279
Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie,...
分类:
其他好文 时间:
2014-09-08 09:39:06
阅读次数:
312
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:
其他好文 时间:
2014-09-07 13:24:55
阅读次数:
229
一般不要修改SQLServer事务的默认级别。不推荐强行加锁 1 执行 EXEC SP_LOCK 报告有关锁的信息 1 如何锁一个表的某一行 SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED SELECT * FROM table ROWLOCK .....
分类:
数据库 时间:
2014-09-05 19:55:51
阅读次数:
229
本题要求编写程序,计算4个整数的和与平均值。题目保证输入与输出均在整型范围内。输入格式: 输入在一行中给出4个整数,其间以空格分隔。输出格式: 在一行中按照格式“Sum = 和; Average = 平均值”顺序输出和与平均值,其中平均值精确到小数点后1位。输入样例:1 2 3 4输出样例:Sum ...
分类:
其他好文 时间:
2014-09-05 17:56:01
阅读次数:
260
脏数据检查:
什么是脏数据?脏数据并不是废弃和无用的数据,而是状态前后发生变化的数据。我们看下面的代码:
Transaction tx=session.beginTransaction();
User user=(User)session.load(User.class,”1”);//从数据库中加载符合条件的数据
user.setName(“zx”);//改变了...
分类:
系统相关 时间:
2014-09-04 19:09:20
阅读次数:
285