摘要: 1.唯一索引 :(创建唯一约束的时候自动生成唯一索引) 2.主键索引 :(创建主键时自动生成索引,是一种特殊的唯一索引,和唯一索引的区别是【唯一允许NULL值,主键不允许为空】。并且他是特殊的聚集索引) 3.聚集索引 :(自动会进行排序。每个表只能有一个。如果一个字段经常用来order by ,group by ,或者当作查询条件,那个这个字段有必设置成聚集索引) 4.非聚集索引 :(非聚集索引指定表的逻辑顺序。数据存储在一个位置,索引存储在另一个位置,索引中包含指向数据存储位置的指针。可以有多个,小于249个) 后面还要指定一个填充因子。填充因子:数据经常变化,填充因子就设置的越大,如果数据 阅读全文
posted @ 2012-08-16 11:51 狩猪逮兔 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Windows Server 2003 Enterprise Edition(企业版):* 支持8节点集群、NUMA;支持8路SMP* 内存支持: (i386)32位版支持32GB内存 (X64) 64位版支持64GB内存Windows Server 2003 Standard Edition 最高支持 4 GB 的物理内存。 Windows Server 2003 Enterprise Edition 最高支持 32 GB 的物理内存。 Windows Server 2003 Datacenter Edition 最高支持 64 GB 的物理内存。windows 200... 阅读全文
posted @ 2012-08-15 18:51 狩猪逮兔 阅读(292) 评论(0) 推荐(0) 编辑
摘要: //JavaScriptResult: public class FooController : Controller { public ActionResult JavaScript() { return JavaScript("alert('Hello World!');"); } } //ContentResult: public class FooController : Controller { public ActionResult JavaScript() { return Content("alert('Hello Worl 阅读全文
posted @ 2012-08-15 18:00 狩猪逮兔 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Checkbox Html.CheckBox("myCheckbox", false)Output: <input id="myCheckbox" name="myCheckbox" type="checkbox" value="true" /><input name="myCheckbox" type="hidden" value="false" />Hidden field Html.Hidden(" 阅读全文
posted @ 2012-06-14 14:58 狩猪逮兔 阅读(1033) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Runtime.Remoting;using System.Threading;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { Marshalling(); } static void Marshalling() { //获得当前线程的应用程序域 阅读全文
posted @ 2012-06-04 14:14 狩猪逮兔 阅读(362) 评论(0) 推荐(0) 编辑
摘要: public static void Main() { // Create a Timer object that knows to call our TimerCallback // method once every 2000 milliseconds. Timer t = new Timer(TimerCallback, null, 0, 2000); // Wait for the user to hit <Enter> Console.ReadLine(); } private static void TimerCallback(Object o) { // Displa 阅读全文
posted @ 2012-05-31 18:57 狩猪逮兔 阅读(212) 评论(0) 推荐(0) 编辑
摘要: private static void Demo1() { try { Console.WriteLine("In try"); } finally { // Type1!ˉs static constructor is implicitly called in her Type1.M(); } } private sealed class Type1 { static Type1() { // if this throws an exception, M won!ˉt get calle Console.WriteLine("Type1's static 阅读全文
posted @ 2012-05-31 16:01 狩猪逮兔 阅读(415) 评论(0) 推荐(0) 编辑
摘要: var hasPlug=function(name){ var name=name.toLowerCase(); var plugins_arr=navigator.plugins; for(var i=0;i<plugins_arr.length;i++) { if(plugins_arr[i].name.toLowerCase().indexOf(name)>-1) { document.title=plugins_arr[i].description+"-->"+plugins_arr[i].filename; return true; } } re 阅读全文
posted @ 2012-05-28 15:52 狩猪逮兔 阅读(194) 评论(0) 推荐(0) 编辑
摘要: //RollBack.cs using System; using System.Data; using System.Data.SqlClient; namespace Aspcn { public class DbTran { file://执行事务处理 public void DoTran() { file://建立连接并打开 SqlConnection myC... 阅读全文
posted @ 2008-08-16 16:14 狩猪逮兔 阅读(489) 评论(0) 推荐(0) 编辑
摘要: public class Jscript { #region -=弹出小窗口 Alert(string message)=- /// /// 弹出JavaScript小窗口 /// /// 窗口信息 public static void Alert(string message) ... 阅读全文
posted @ 2008-08-14 15:54 狩猪逮兔 阅读(821) 评论(0) 推荐(0) 编辑