Jenney Zhao

导航

2012年11月7日 #

ToString() 格式化字符串总结

摘要: ToString()的标准格式化字符串分为3大类:枚举类型的格式化字符串,数值类型的格式化字符串,和日期时间类型的格式化字符串。日期时间类型的格式化字符串请见我的博客DateTime格式字符串。Enumeration Format StringsFormat stringResultG or gDisplays the enumeration entry as a string value, if possible, and otherwise displays the integer value of the current instance. If the enumeration is d 阅读全文

posted @ 2012-11-07 14:58 Jenney Zhao 阅读(294) 评论(0) 推荐(0)

2012年11月2日 #

char, varchar, nchar, nvarchar (Transact-SQL)

摘要: char 和 varchar (Transact-SQL)长度固定或可变的字符串数据类型。char[ ( n) ]固定长度,非 Unicode 字符串数据。 n 用于定义字符串长度,并且它必须为 1 到 8,000 之间的值。 存储大小为 n 字节。 char 的 ISO 同义词为 characte... 阅读全文

posted @ 2012-11-02 10:14 Jenney Zhao 阅读(172) 评论(0) 推荐(0)

2012年10月24日 #

DateTime 格式字符串

摘要: 标准 DateTime 格式字符串详见:http://msdn.microsoft.com/zh-cn/library/az4se3k1(VS.80).aspx格式说明符名称说明d短日期模式表示由当前 ShortDatePattern 属性定义的自定义 DateTime 格式字符串。例如,用于固定区域性的自定义格式字符串为“MM/dd/yyyy”。D长日期模式表示由当前 LongDatePattern 属性定义的自定义 DateTime 格式字符串。例如,用于固定区域性的自定义格式字符串为“dddd, dd MMMM yyyy”。f完整日期/时间模式(短时间)表示长日期 (D) 和短时间 (t 阅读全文

posted @ 2012-10-24 13:21 Jenney Zhao 阅读(565) 评论(0) 推荐(0)

2012年9月21日 #

SQL 数值类型表示范围

摘要: Data typeRangeStoragebigint -2^63 (-9,223,372,036,854,775,808) to 2^63-1 (9,223,372,036,854,775,807)8 Bytesint -2^31 (-2,147,483,648) to 2^31-1 (2,147,483,647)4 Bytessmallint -2^15 (-32,768) to 2^15-1 (32,767)2 Bytestinyint 0 to 2551 Bytedecimal - 10^38 +1 through 10^38 - 1numeric- 10^38 +1 through 阅读全文

posted @ 2012-09-21 10:33 Jenney Zhao 阅读(267) 评论(0) 推荐(0)

2012年9月14日 #

使用mstest.exe 命令行跑test case(不安装Visual Studio 2010)

摘要: 怎样在没有安装VS2010的环境里用mstest.exe跑test case?(注:以下实验在64位Windows 7上通过)1. 首先在装有VS2010的环境里,新建一个文件夹,如C:\Users\username\Desktop\mstestCommandLine(注意文件夹名不能有空格,否则运行下面的脚本会有问题),然后把下面的脚本getmstest.bat复制到此目录下,运行getmstest.bat,这个bat会把mstest.exe需要的类库及注册表都导入到当前目录下一个叫mstest的文件夹里getmstest.bat@echo offsetlocalset here=%~dp0 阅读全文

posted @ 2012-09-14 13:49 Jenney Zhao 阅读(2094) 评论(0) 推荐(3)

2012年9月13日 #

Forms Authentication timeout and Expiration

摘要: 本文不涉及session的timeout在Forms Authentication里有两处涉及timeout:forms authentication ticket 与 forms authentication cookie1. 设置 ticket 的 Expiration: var ticket = new FormsAuthenticationTicket( 1, FormsAuthentication.FormsCookieName, ... 阅读全文

posted @ 2012-09-13 20:44 Jenney Zhao 阅读(1047) 评论(1) 推荐(0)

2012年9月11日 #

SQL Server标识列

摘要: [转]一、标识列的定义以及特点SQL Server中的标识列又称标识符列,习惯上又叫自增列。该种列具有以下三种特点:1、列的数据类型为不带小数的数值类型2、在进行插入(Insert)操作时,该列的值是由系统按一定规律生成,不允许空值3、列值不重复,具有标识表中每一行的作用,每个表只能有一个标识列。由于以上特点,使得标识列在数据库的设计中得到广泛的使用。二、标识列的组成创建一个标识列,通常要指定三个内容:1、类型(type)在SQL Server 2000中,标识列类型必须是数值类型,如下:decimal、int、numeric、smallint、bigint 、tinyint 其中要注意的是, 阅读全文

posted @ 2012-09-11 20:38 Jenney Zhao 阅读(340) 评论(1) 推荐(0)

2012年8月17日 #

Termp Folder and its subfolders

摘要: Ifyouopen %TEMP% from the Start menu, it may open C:\Users\username\AppData\Local\Temp\1, C:\Users\username\AppData\Local\Temp\2, and so on. Each time the user logs off and back on, the number increments. The number resets after each reboot. Why are we seeing these folders being created under Temp? 阅读全文

posted @ 2012-08-17 19:22 Jenney Zhao 阅读(370) 评论(1) 推荐(0)

2012年8月15日 #

REST基础

摘要: REST(Representational State Transfer表述性状态转移)是分布式网络系统的一种设计模式, 源自Roy T. Fielding in his PhD thesis in 2000.Resource – Oriented: Drivers of the resource design are networking aspects and not the object model.Key REST Principles•Give every “thing” an ID•Link things together(URI)•Use standard methods(Get 阅读全文

posted @ 2012-08-15 20:35 Jenney Zhao 阅读(153) 评论(0) 推荐(0)

2012年8月14日 #

Generic performance test

摘要: Generic performance test 阅读全文

posted @ 2012-08-14 20:00 Jenney Zhao 阅读(130) 评论(0) 推荐(0)