philzhou

导航

上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页

2011年5月27日 #

转载 :SQL Server 2005 Recursion and WITH Clause

摘要: Recursive queries have been added to T-SQL in SQL Server 2005 in the form of the WITH clause and CTE. The books online documentation is pretty straight forward but a few people have asked me to work up a few useful samples to help get them going. Simply copy/paste these samples into a query window and execute. 阅读全文

posted @ 2011-05-27 15:52 philzhou 阅读(247) 评论(0) 推荐(0)

2011年5月17日 #

转 The identity crisis in replication

摘要: 原文ScriptThis article discusses three common problems DBAs are likely to encounter when columns have the identity property, which is defined as an attribute of int, smallint, bigint, decimal, numeric or tinyint columns that will auto-increment their value when data is inserted. These problems are hum 阅读全文

posted @ 2011-05-17 20:03 philzhou 阅读(413) 评论(0) 推荐(0)

2011年5月4日 #

转MSDN 用于 Web 应用程序项目部署的 Web.config 转换语法

摘要: 用于 Web 应用程序项目部署的 Web.config 转换语法.NET Framework 4 Web.config 文件通常包括根据应用程序的运行环境而必须不同的设置。例如,在部署 Web.config 文件时,您可能必须更改数据库连接字符串或禁用调试。对于 Web 应用程序项目,ASP.NET 提供了一些工具,用于自动完成在部署这些项目时更改(转换)Web.config 文件的过程。对于要部署到的每个环境,您将创建一个转换文件,该文件仅指定原始 Web.config 文件和适用于该环境的已部署 Web.config 文件之间的差异。 转换文件是一个 XML 文件,该文件指定在部署 Web 阅读全文

posted @ 2011-05-04 09:54 philzhou 阅读(302) 评论(0) 推荐(0)

2011年4月27日 #

转载 A low-level Look at the ASP.NET Architecture

摘要: A low-level Look at the ASP.NET Architecture --asp.net 系统架构底层探秘Getting Low LevelThis article looks at how Web requests flow through the ASP.NET framework from a very low level perspective, from Web Server, through ISAPI all the way up the request handler and your code. See what happens behind the sc 阅读全文

posted @ 2011-04-27 11:57 philzhou 阅读(220) 评论(0) 推荐(0)

2011年4月18日 #

asp.net mvc combine with reporting service

摘要: reporting service 的配置:Reporting service 安装配置过程 1. 安装sql server 2008 enterprise edition,并安装reporting service 组件。 2. 配置reporting service 打开reporting service配置面板 配置相应属性(web服务url,报表管理器url) Reporting service 部署过程。 准备工作: 1. 安装sql server 2005/2008 reporting service。 2. 确保http://localhost:portno/reportserve 阅读全文

posted @ 2011-04-18 19:58 philzhou 阅读(676) 评论(0) 推荐(1)

2011年4月15日 #

【转载】C#中StreamWriter与BinaryWriter的区别兼谈编码。

摘要: 原文 参考: 1. 《C#高级编程》第六版 2. 文件流和数据流-C#程序设计教程 2010-7-11补充: 发现了一篇讲编码的深入而全面的好文章http://www.cnblogs.com/KevinYang/archive/2010/06/18/1760597.html 向文件写入非字符类型数据 当向文件中写入非字符类型的数据时,StreamWriter和BinaryWriter存在巨大差异。... 阅读全文

posted @ 2011-04-15 14:25 philzhou 阅读(708) 评论(0) 推荐(0)

2011年4月13日 #

转 How to Identify and Delete Duplicate SQL Server Records

摘要: 原文 Recently, I was asked to help someone clean up their database after they had double loaded an import file. The problem they were having in identifying and deleting the duplicate information was the fact that a timestamp is applied to each row of data as it is inserted into the table. While the re 阅读全文

posted @ 2011-04-13 16:50 philzhou 阅读(506) 评论(1) 推荐(0)

2011年3月23日 #

Web.Config HttpHandler 简介(转摘)

摘要: 原文 HttpHandler 很多时候,我们新建一个xxx.aspx页和xxx.aspx.cs文件,不过是为了实现一个很简单的功能,如:输出xmlDom,注销并跳转,并没有什么html的输出,很是麻烦,需要新建一个页,删除多余的html,并在page_load里面写处理代码。而使用HttpHandler就不需要这么麻烦了。 可以用任何符合公共语言规范 (CLS) 的语言编写自定义 HTTP 处理程... 阅读全文

posted @ 2011-03-23 15:36 philzhou 阅读(247) 评论(0) 推荐(0)

2011年3月18日 #

.Net DateTime.ToString 格式化输出 (转载)

摘要: 原文 虽然 System.DateTime 本身已经具有了不少现成的格式化输出,例如: ToLongDateString, ToShortTimeString, ToUniversalTime 等,但是却远远不能满足我们实际的需要,这就要用到了 DateTime.ToString,就要提到 DateTimeFormatInfo 了,见下面的 MSDN 说明: 格式字符 关联属性/说明 d Shor... 阅读全文

posted @ 2011-03-18 11:09 philzhou 阅读(536) 评论(0) 推荐(0)

2011年3月11日 #

(转)VPN中预共享对称密钥、非对称密钥、加密密钥、HMAC密钥

摘要: 原文 一、非对称密钥 目的:加密、验证原 理:两个大素数相乘得到一个更大的数(这步很简单),而反过来,从这个更大的数去反向推导原来的乘数,基本上一辈子的时间去计算都很难得到这个答案。这两 个素数一个是公钥,一个就是私钥。加密:peer之间共享公钥,A用B的公钥加密数据,发送给B,B用自己私钥解密。反之也如此。相 互的私钥永远不会公开,即使被攻击者窃听到公钥,也不会有危险。验证过程:即通常的说法---数字签名,过程如下:1、A用私 钥+身份信息2、实施加密算法3、发送加密的身份信息(通常这个加密的身份信息称为数字签名)和明文身份信息给对方B4、B使用 A的公钥解密数据——得到解密后代身份信息5、 阅读全文

posted @ 2011-03-11 11:29 philzhou 阅读(436) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页