.NET流水账

一个真正的开明进步的国家,不是一群奴才造成的,是要有独立个性,有自由思考的人造成的。

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  17 随笔 :: 0 文章 :: 30 评论 :: 6 引用

10 2005 档案

摘要: 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=curre...阅读全文
posted @ 2005-10-13 15:06 DalianGary 阅读(411) | 评论 (0) 编辑

摘要: 最近遇到了一个奇怪的现象,参见说明代码:1DimaAsString="1000"2DimbAsString="1"3DimcAsString="6"4DimdAsString5DimfAsLong67d=CStr(CLng(a)*CLng(b)/CLng(c))8f=(CLng(a)*CLng(b)/CLng(c)).ToString910MessageBox.Show(d)11MessageBo...阅读全文
posted @ 2005-10-13 10:54 DalianGary 阅读(3430) | 评论 (3) 编辑

摘要: MS SQLSERVER 只能得到存储过程的创建语句,方法如下:sp_helptext procedureName但是往往我们需要得到表的创建语句,比如说在数据库升级的时候判断某个表是否已经改变,或者已经有一个表存在,但不知道它的创建语句是什么,字段有没有约束,有没有主键,创建了哪些索引等等.下面我给出一个存储过程,供读者参考.该存储过程可以得到你想得到的所有的表的创建语句,包括和表有关的索引的创...阅读全文
posted @ 2005-10-12 15:16 DalianGary 阅读(548) | 评论 (1) 编辑

摘要: 1ifexists(select*fromsysobjectswhereid=2object_id('spu_GenerateInsert'))3dropprocedurespu_GenerateInsert4GO567CREATEPROCEDUREspu_GenerateInsert8@tablevarchar(128)9AS102627--declaresomevariablesthatwil...阅读全文
posted @ 2005-10-12 14:45 DalianGary 阅读(837) | 评论 (1) 编辑

posted @ 2005-10-07 15:30 DalianGary 阅读(1986) | 评论 (0) 编辑

posted @ 2005-10-07 10:35 DalianGary 阅读(1023) | 评论 (1) 编辑

posted @ 2005-10-07 09:23 DalianGary 阅读(718) | 评论 (0) 编辑