2010年4月26日

view problem

摘要: 用.net做B/S结构的系统,您是用几层结构来开发,每一层之间的关系以及为什么要这样分层? 答:从下至上分别为:数据访问层、业务逻辑层(又或成为领域层)、表示层 数据访问层:有时候也称为是持久层,其功能主要是负责数据库的访问 业务逻辑层:是整个系统的核心,它与这个系统的业务(领域)有关 表示层:是系统的UI部分,负责使用者与整个系统的交互。 优点: 分工明确,条理清晰,易于调试,而且具有可扩展性。... 阅读全文

posted @ 2010-04-26 11:24 laodao1 阅读(525) 评论(0) 推荐(0) 编辑

2010年4月16日

asp.net文本编辑器(FCKeditor)

摘要: 地址如下:http://www.cnblogs.com/yaokoo/archive/2010/04/15/1712491.html 阅读全文

posted @ 2010-04-16 14:51 laodao1 阅读(128) 评论(0) 推荐(0) 编辑

2010年4月15日

sql优化之(DMV)

摘要: 监控 SQL Server (2005/2008) 的运行状况--来自微软TetchNet 原文地址:http://technet.microsoft.com/zh-cn/library/bb838723.aspxMicrosoft SQL Server 2005 提供了一些工具来监控数据库。方法之一是动态管理视图。动态管理视图 (DMV) 和动态管理函数 (DMF) 返回的服务器状态信息可用于监... 阅读全文

posted @ 2010-04-15 17:46 laodao1 阅读(4424) 评论(1) 推荐(4) 编辑

tempdb对SQL Server性能的影响

摘要: 1.SQL Server系统数据库介绍SQL Server有四个重要的系统级数据库:master,model,msdb,tempdb.master:记录SQL Server系统的所有系统级信息,包括实例范围的元数据,端点,链接服务器和系统配置设置,还记录其他数据库是否存在以及这些数据问文件的位置等等.如果master不可用,数据库将不能启动.model:用在SQL Server 实例上创建的所有数... 阅读全文

posted @ 2010-04-15 10:35 laodao1 阅读(486) 评论(0) 推荐(0) 编辑

2010年4月14日

url重写(UrlRewritingNet.UrlRewrite)

摘要: UrlRewritingNet.UrlRewrite 组件 介绍(一)UrlRewritingNet.UrlRewrite 欢迎来到UrlRewritingNet.UrlRewrite 的页面,UrlRewritingNet.UrlRewrite 是一款简单可靠的用asp.net重写url的开源组件。 它是基于被Thomas Bandt和Albert Weinert改进和提高的Fabrice Ma... 阅读全文

posted @ 2010-04-14 18:05 laodao1 阅读(399) 评论(0) 推荐(0) 编辑

2010年4月2日

SQL 扫描参数(SARG)

摘要: 改善SQL语句 很多人不知道SQL语句在SQL SERVER中是如何执行的,他们担心自己所写的SQL语句会被SQL SERVER误解。比如: select * from table1 where name='zhangsan' and tID > 10000和执行: select * from table1 where tID > 10000 and name='zhangsan' 一... 阅读全文

posted @ 2010-04-02 17:49 laodao1 阅读(239) 评论(0) 推荐(0) 编辑

sql中Convert和Cast 用法总结

摘要: 时间--》》字符串 select Convert(char(10),getdate(),112)select Cast(getdate() as varchar(10))字符串--》》时间select Cast('20100305' as datetime)select Convert(datetime,'20100305')总结:我发现Convert一个就够用了,而且挺好的。 阅读全文

posted @ 2010-04-02 15:15 laodao1 阅读(921) 评论(0) 推荐(0) 编辑

SQL 查询某天的数据

摘要: 查询 2010-03-25 的数据代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--select*fromscore_getwheresubstring(Convert(char(10),get_time,112),1,8)='20100325'se... 阅读全文

posted @ 2010-04-02 13:17 laodao1 阅读(11023) 评论(0) 推荐(0) 编辑

2010年4月1日

哈希表(HashTable)

摘要: HashTable 通常称为哈希表,它表示键(key)/值(value)对的集合。  1、HashTable 的构造函数:  HashTable() //初始化为0个元素的空实例  HashTable(Int32) //初始化为int32 个元素的新实例  例子:  HashTable myHashTable1 = new HashTable();  HashTable myHashTable2 ... 阅读全文

posted @ 2010-04-01 13:56 laodao1 阅读(179) 评论(0) 推荐(0) 编辑

ref out 和没加这2个参数的区别

摘要: 一、没加入参数例子代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem;classApp{publicstaticvoidUseRef(inti){i+=100;Console.WriteLine("i={0}",i);}stat... 阅读全文

posted @ 2010-04-01 09:16 laodao1 阅读(267) 评论(0) 推荐(0) 编辑

导航