摘要:
多线程: Type text here class ActiveDate { private string _CusID; private string _Visitor; private int _ShopNum; private int _flag = 0; public int Flag... 阅读全文
摘要:
线程是个轻量级的进程,运用线程我们可以提高程序响应速度.要运用多线程我们必须得用Threading这个位于System下的命名空间.命名空间System.Threading里包含所有我们进行多线程所需要的类和方法.下面就让我们看第一个例子 using System; using System.Threading; public class MyThread { public stat... 阅读全文
摘要:
USE AdventureWorks; GO CREATE TABLE #temptable (col1 int); GO INSERT INTO #temptable VALUES (10); GO SELECT * FROM #temptable; GO IF OBJECT_ID(N'tempdb..#temptable', N'U') IS NOT NULL DROP TABLE #tem... 阅读全文
摘要:
摘要:SQL Server 2005 中基于表的分区功能为简化分区表的创建和维护过程提供了灵活性和更好的性能。追溯从逻辑分区表和手动分区表的功能到最新分区功能的发展历程,探索为什么、何时以及如何使用 SQL Server 2005 设计、实现和维护分区表。(本文包含一些指向英文站点的链接。 ) 关于本文本文所描绘的功能和计划是下一版本 SQL Server 的开发方向。它们并非本产品的说明书,如有... 阅读全文
摘要:
ROW_NUMBER的用法 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->select * from ( select CustomerId, ROW_NUMBER() OVER (order by CustomerId) as Pos ... 阅读全文
摘要:
说明:复制表(只复制结构,源表名:a 新表名:b) select * into b from a where 11 说明:拷贝表(拷贝数据,源表名:a 目标表名:b)insert into b(a, b, c) select d,e,f from b; 说明:显示文章、提交人和最后回复时间select a.title,a.username,b.adddate from table a,(selec... 阅读全文
摘要:
public class NSection : ConfigurationSection { public NSection() { } [ConfigurationProperty("id")] public int ID { get { return (int)this["... 阅读全文
摘要:
ASP.NET 2.0 allows you to validate users via Active Directory, database, or even a custom algorithm. ASP.NET 2.0 supports a provider-based model for a number of application services including me... 阅读全文
摘要:
Common Patterns in System.DirectoryServicesSearching the Directory: Create a DirectoryEntry that represents your SearchRoot. Your searches will be rooted to this location and will have the same ... 阅读全文
摘要:
The System.DirectoryServices namespace provides easy access to Active Directory from managed code. The namespace contains two component classes, DirectoryEntry and DirectorySearcher, which use the Act... 阅读全文
摘要:
.NET Framework Class Library: System.DirectoryServices Namespace http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemdirectoryservices.asp How to poll for changes to the Active Directory by ... 阅读全文