摘要: ALTER DATABASE tmipdb_td SET MULTI_USER 阅读全文
posted @ 2012-11-23 14:35 星羽 阅读(670) 评论(0) 推荐(0) 编辑
摘要: 在CS代码中传入值操作: Nullable<DateTime> instoragedate = null; if (!string.IsNullOrEmpty(instorage)) instoragedate = Convert.ToDateTime(instorage);在SQL查询时操作: case when convert( varchar(12) ,InStorageDate,111)='1900/01/01' then '' else convert( varchar(12) ,InStorageDate,111) end as InSt 阅读全文
posted @ 2012-11-23 13:21 星羽 阅读(5712) 评论(0) 推荐(0) 编辑