人是有惰性的

想到哪儿写到哪儿

2007年8月1日

如何在存储过程B中,对存储过程A的结果集进行查询

摘要: DECLARE @tmpTable table (姓名 nvarchar(10), 性别 nvarchar(1), 部门nvarchar(10));INSERT INTO @tmpTable EXECUTE dbo.uspGetAllEmployees;SELECT * FROM @tmpTable WHERE 部门 = @Dept AND 性别 = @Gender ORDER BY 1;----... 阅读全文

posted @ 2007-08-01 16:23 guanfei 阅读(178) 评论(0) 推荐(0)
SET NOCOUNT的用法和注意事项

摘要: 转 http://www.elook.net.cn/cms/Site/Article/shjk31/mssql33/2382.html当 SET NOCOUNT 为 ON 时,不返回计数(表示受 Transact-SQL 语句影响的行数)。当 SET NOCOUNT 为 OFF 时,返回计数。即使当 SET NOCOUNT 为 ON 时,也更新 @@ROWCOUNT 函数。当 SET NOCOUN... 阅读全文

posted @ 2007-08-01 14:18 guanfei 阅读(216) 评论(0) 推荐(0)
关于linkserver 中使用 nolock

摘要: 在本地数据库调用link server的数据时,如果用了nolock会出错,Remote table-valued function calls are not allowed. 这样有如下解决办法 在Link Server中建立一个存储过程 Create PROCEDURE usp_test asBEGIN SELECT * FROM t_Item (NOLOCK)END ... 阅读全文

posted @ 2007-08-01 11:15 guanfei 阅读(277) 评论(0) 推荐(0)

2007年7月30日

c# const vs readonly

摘要: http://www.webjx.com/htmldata/2006-01-17/1137500445.htmlhttp://blog.csdn.net/deepbluekk/archive/2006/03/14/624269.aspxhttp://blog.joycode.com/jgtm2000/archive/2003/12/02/8240.aspx 我们都知道,const和static r... 阅读全文

posted @ 2007-07-30 12:04 guanfei 阅读(329) 评论(0) 推荐(0)

2007年7月29日

浅谈数据类型转换之基本类型

摘要: 转 http://blog.csdn.net/davie_yang/archive/2007/07/26/1709789.aspx 数据类型的简单罗列: bool -> System.Boolean (布尔型,其值为 true 或者 false) char -> System.Char (字符型,占有两个字节,表示 1 个 Unicode 字符) ... 阅读全文

posted @ 2007-07-29 21:58 guanfei 阅读(635) 评论(0) 推荐(0)
OutputCache VaryByParam

摘要: 转 http://blog.csdn.net/ITFLY8/archive/2007/07/20/1700376.aspx ASP.NET的输出缓存 衡量高性能、可缩放的web应用程序最重要的一个指标就是缓存了。ASP.NET提供了高性能的web应用程序的缓存功能,ASP.NET 有三种可由 Web 应用程序使用的缓存: · 输出缓存,它缓存请求所生成的动态响应。 · 片断缓存,它缓存请求所生成的... 阅读全文

posted @ 2007-07-29 16:57 guanfei 阅读(5146) 评论(2) 推荐(0)
动态生成用户控件

摘要: 用户控件不能使用New来创建,目前还不知道是什么原因。可以使用LoadControl, Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> if ( !Page.IsPostBack ) { ... 阅读全文

posted @ 2007-07-29 16:34 guanfei 阅读(274) 评论(0) 推荐(0)

2007年7月26日

获取根目录,并转向

摘要: string url = Request.ApplicationPath; if (url != "/") url += "/"; Response.Redirect((url + "Webform3.aspx")); 阅读全文

posted @ 2007-07-26 21:03 guanfei 阅读(216) 评论(0) 推荐(0)

2007年7月25日

获取 当前运行程序路径 AppDomain.CurrentDomain.BaseDirectory

摘要: 如题 阅读全文

posted @ 2007-07-25 11:13 guanfei 阅读(1950) 评论(0) 推荐(0)
Path.Combine (合并两个路径字符串)方法的一些使用细节

摘要: 转 http://blog.joycode.com/ghj/archive/2006/08/07/79611.aspx System.IO.Path.Combine 简单来说,就是合并两个路径字符串。 比如如下调用,Path.Combine(@"C:\11","aa.txt") 返回的字符串路径如后: C:\11\aa.txt 这个方法的声明如下: public static string ... 阅读全文

posted @ 2007-07-25 10:57 guanfei 阅读(309) 评论(0) 推荐(0)