随笔分类 -  技术类

摘要:--方法1exec sp_MSforeachtable @command1="EXEC sp_spaceused '?'";会返回多个结果集,可能不是所希望的结果。进一步处理,参考方法2--方法2create table #tblResults([name] nvarchar(50), --注意有表名会长于50[rows] int,[reserved] varchar(18),[reserved_int] int default(0),[data] varchar(18),[data_int] int default(0),[index_size] varc 阅读全文

posted @ 2012-06-28 14:09 小呆也行 阅读(4548) 评论(0) 推荐(0)

摘要:--建立測試環境Create Table A(ID Int,fatherID Int,NameVarchar(10))Insert A Select 1, NULL, 'tt'Union All Select 2, 1, 'aa'Union All Select 3, 1, 'bb'Union All Select 4, 2, 'cc'Union All Select 5, 2, 'gg'Unio... 阅读全文

posted @ 2010-11-24 14:56 小呆也行 阅读(2469) 评论(0) 推荐(0)

摘要:Sql中查找数据库中,所有包含字段的表名select a.name as tablename,b.name as columnname from sysobjectsa left join syscolumns b on a.id=b.idwhere a.xtype='u' and a.status>=0 and b.name like'%columnname %' 阅读全文

posted @ 2010-07-15 12:13 小呆也行 阅读(707) 评论(0) 推荐(0)

摘要:IntroductionEven though it’s possible to execute asp and asp.net pages on the same server and even in the same directory,the communication between the two systems is difficult. For example, the ... 阅读全文

posted @ 2010-06-12 18:11 小呆也行 阅读(386) 评论(0) 推荐(0)

摘要:简介虽然 Microsoft® ASP .NET 的设计者在保持 ASP 应用程序的向后兼容性方面做了大量不懈的努力,但在将 Web 应用程序由 ASP 向 ASP .NET 迁移之前,还是应该了解一下几个关键的问题。在 .NET 平台和 ASP .NET 中对现有技术进行了改进并采用了一些新技术,透彻理解这些技术有利于简化此迁移过程,但这需要经过一段漫长的时间。本文探讨各方面的变化,以... 阅读全文

posted @ 2010-06-10 14:22 小呆也行 阅读(222) 评论(0) 推荐(0)

摘要:方式一:数据源.Where(s =>s.Name.IndexOf("张")>=0 --------意义等同于 like '%张%'s.Name.StartsWith("张") -------- 等同于like '张%'s.Name.EndWith("张") -------- 等同于like '%张');方式二:var query = from product in products w... 阅读全文

posted @ 2010-06-09 14:46 小呆也行 阅读(5511) 评论(2) 推荐(0)

摘要:所有采用IEEE-754浮点数的语言都存在这个问题: Float对象的精度很高,可以很好的近似表示0.1,但是无法做到完全精确,这会带来一些问题。请考虑下面表达式:0.4 - 0.3 == 0.1 由于圆整错误,0.4和0.3的近似值之间的差值与0.1的近似值并不相同。 对于此问题的一个解决方案就是采用十进制表示实数,而不是二进制。 阅读全文

posted @ 2010-05-31 23:06 小呆也行 阅读(332) 评论(0) 推荐(0)

导航