- 博客(11)
- 资源 (4)
- 收藏
- 关注
转载 SqlDependency和SqlCacheDependency缓存的用法及具体步骤
SqlDependency是outputcache网页缓存的一个参数,它的作用是指定缓存失效的数据库依赖项,可以具体到数据库和表。SqlDependency能解决什么问题?Asp.Net中的cache可以设置一个过期时间,但设置多久合适呢?长了浪费,短了就失去缓存的意义了。使用SqlDependency进行缓存则可以解决这个问题。SqlDependency是.net2.0封
2014-08-29 00:24:38 726
原创 singleton class
public class Singleton { // Private static object can access only inside the Emp class. private static Singleton instance; // Private empty constructor to restrict end use
2014-08-25 11:47:20 679
原创 非聚集索引
SQL Server索引进阶第二篇:深入非聚集索引 索引设计是数据库设计中比较重要的一个环节,对数据库的性能其中至关重要的作用,但是索引的设计却又不是那么容易的事情,性能也不是那么轻易就获取到的,很多的技术人员因为不恰当的创建索引,最后使得其效果适得其反,可以说“成也索引,败也索引”。 本系列文章来自Stairway to SQL Server Indexes
2014-08-15 13:19:20 561
转载 Sql Server Group By 汇总
SQL Server 2008中对汇总有明显的增强,有点像Oracle的语法了。请看下面五个例子:假定场景如下:某几位员工在不同时间参加了不同的项目,获取了相应的收入,现在需要按各种分类进行统计。基本表如下:[sql] view plaincopyprint?USE testDb2 GO IF NOT OBJECT
2014-08-12 11:05:23 1042
转载 Sql Server 2008 merge
SQL Server 2008中SQL应用系列--目录索引SQL Server 2008提供了一个增强的SQL命令Merge,用法参看MSDN:http://msdn.microsoft.com/zh-cn/library/bb510625.aspx功能:根据与源表联接的结果,对目标表执行插入、更新或删除操作。例如,根据在另一个表中找到的差异在一个表中插入、更新或删除行,可以对两个
2014-08-12 10:57:37 459
转载 Sql Server 2012批量处理注意!!
SQL Server 2008中SQL应用系列--目录索引今天在做一个案例演示时,在SQL Server 2012中使用Insert语句插入1万条数据,结果遇到了一个奇怪的现象,现将过程分享出来,以供有兴趣的同学参考。附:我的测试环境为:SQL Server 2012,命名实例Microsoft SQL Server 2012 - 11.0.2100.6
2014-08-12 10:07:40 704
原创 查看Sql Server语句执行效率,时间的方法
This tutorial proposes 3 ways in order for you to get the Execution time of SQL Query or Stored Procedures are called or submitted to your SQL Server.They will give you durations in microseconds a
2014-08-12 10:00:29 3127
原创 Monitoring Aggregations
Aggregations in SSASTable of ContentsFactors to consider during Designing AggregationsMonitoring AggregationsWhy Aggregations?Can Anything and Everything be part of Aggrega
2014-08-07 15:05:05 551
原创 对于aggregation 的A0,A1,A2
The Aggregation is one for the most important thing for improving query performance in SSAS. You can create aggregation manually in Aggregation Tab -->Advanced View. An aggregation is to the
2014-08-07 14:55:16 615
转载 QUERY PERFORMANCE TUNING IN MICROSOFT ANALYSIS SERVICES:
How Analysis Services processes queriesBefore we start to discuss how to improve query performance, we need to understand what happens inside Analysis Services when a query is run. The two major p
2014-08-07 14:54:20 927
原创 HttpClient使用
string content = JsonConvert.SerializeObject(registrationDetails);HttpResponseMessage result = client.PostAsync(urlBuilder.Register(), new StringContent(content, Encoding.UTF8, "application/json")).
2014-08-06 10:11:28 512
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人