摘要: layoutControl1 阅读全文
posted @ 2015-04-24 15:32 xiajing12345 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 主要原因是这个证书链失败,使用的语句:makecert -sr CurrentUser -ss My -n CN=FrankCertificate -sky signature -pe制作的是自签名的证书,不能设置为新人证书。修改sky选项为exchange,可以交换密钥。因为要导出带密钥的证书,要... 阅读全文
posted @ 2014-11-03 15:22 xiajing12345 阅读(218) 评论(0) 推荐(0) 编辑
摘要: FileInfo fi =newFileInfo("C:\\test.txt");Console.WriteLine(fi.CreationTime.ToString());Console.WriteLine(fi.LastWriteTime.ToString());Console.WriteLin... 阅读全文
posted @ 2014-05-25 21:55 xiajing12345 阅读(327) 评论(0) 推荐(0) 编辑
摘要: c# 阅读全文
posted @ 2014-03-07 09:53 xiajing12345 阅读(300) 评论(0) 推荐(0) 编辑
摘要: private void dateEdit1_DrawItem(object sender, DevExpress.XtraEditors.Calendar.CustomDrawDayNumberCellEventArgs e) { if (e.Date.ToString("yyyy-MM-dd") == "2014-01-03") { RectangleF rect = new RectangleF(e.Bounds.Location, e.Bounds.Size); Color backColor = Color.Red; e.Graphics.Fi 阅读全文
posted @ 2014-01-11 16:44 xiajing12345 阅读(323) 评论(0) 推荐(0) 编辑
摘要: using Evaluant.NLinq.Memory;using System.Collections.Generic;using Evaluant.NLinq;using System.Collections;using Microsoft.VisualStudio.TestTools.UnitTesting;#region test LinqToMemory linq; NLinqQuery query; MyHotelDataContext dataContext = new MyHotelDataContext(); var v = from t in dataContext.T1_ 阅读全文
posted @ 2013-12-01 23:14 xiajing12345 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 第一个表 table1 为消费都用的时间:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Table1]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[Table1]GOCREATE TABLE [dbo].[Table1] ([AutoID] [int] NOT NULL ,[BeginTime] [datetime] NULL ,[EndTime] [datetime] NULL ) ON 阅读全文
posted @ 2013-10-23 10:48 xiajing12345 阅读(371) 评论(0) 推荐(0) 编辑
摘要: create table tb(imgPath varchar(50)) insert into tb select 'd1/d2/f1'--d1/d2/dd/f1 select left(imgPath,len(imgPath)-charindex('/',reverse(imgPath))) from tb 阅读全文
posted @ 2013-10-08 11:03 xiajing12345 阅读(1561) 评论(0) 推荐(0) 编辑
摘要: 客户需求这样的结果,还要求可以按要求时间(T1)查询:建立的数据表如下(Table_1):数据如下:怎样才能把 table_1 这样的数据变成 T1这样的如下SQL步骤如下:1. 把当天不需要的数据去掉:如下:select rooms,times,MAX(cb) as cb from(select Rooms,STUFF(STUFF(CONVERT(char(8),MAX(times),112),5,0,N'-'),8,0,N'-')+N'' as times,max(cb) as cb from Table_1 where times > 阅读全文
posted @ 2013-09-30 09:43 xiajing12345 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 有一张表期中有100多w条数据 程序执行起来比较慢,想用分区表的办法,使查询变快一些。方案如下--查看分区信息SELECT * FROM sys.partition_range_values--查看分区架构select * from sys.partition_schemes --select * from Day_CaiDan_Elderly--分区函数 :按每半年分一次CREATE PARTITION FUNCTION MonthDateRange(datetime)AS RANGE Right FOR VALUES ( '2013-01-31 00:00:00.000', 阅读全文
posted @ 2013-09-12 11:16 xiajing12345 阅读(436) 评论(0) 推荐(0) 编辑