上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
摘要: 方法1 SELECT 32-DAY(getdate()+32-DAY(getdate())) 方法2 阅读全文
posted @ 2018-10-22 16:02 覆雨翻云 阅读(2149) 评论(0) 推荐(0) 编辑
摘要: 您可以使用许多标准格式将位图储存在磁盘文件中。GDI+ 支持以下各种图片文件格式。 o 位图 (BMP) 位图是 Windows 用来储存设备无关和与应用程序无关的图片的标准格式。文件头决定了指定的位图文件的每个像素位数 (1、4、8、15、24、32 或 64)。常见的位图文件为每像素 24 位。 阅读全文
posted @ 2018-10-19 22:46 覆雨翻云 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: uses WinAPI.GDIPAPI, WinAPI.GDIPOBJ;var Bitmap1: TGPBitmap; Bitmap2: TBitmap; Graphic: TGPGraphics;begin Bitmap1 := TGPBitmap.Create('test.bmp'); // b 阅读全文
posted @ 2018-10-19 14:27 覆雨翻云 阅读(403) 评论(0) 推荐(0) 编辑
摘要: -- 查找所有父节点with tab as( select Type_Id,ParentId,Type_Name from Sys_ParamType_V2_0 where Type_Id=316--子节点 union all select b.Type_Id,b.ParentId,b.Type_N 阅读全文
posted @ 2018-10-19 14:12 覆雨翻云 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 方法一:set @EndDate = dateadd(month, datediff(month, -1, @StoredDate), -1) @StoredDate为本月的任意一天 这里datediff(month, -1, @StoredDate)会返回从1900年1月1日为基准,算出此基准到@ 阅读全文
posted @ 2018-10-05 17:02 覆雨翻云 阅读(3435) 评论(0) 推荐(0) 编辑
摘要: 作者:no_mIss用MSSQL时间快一年了,数据量有时会相对比较多,所以经常要优化,也看过很多资料,但大都有一句:IN、NOT IN不用索引,今天发此贴希望能有人参与讨论,到底IN用不用索引,如果用,在什么情况下用索引,在什么情况下不用索引。前提:表[Table]字段[id] INT PRIMAR 阅读全文
posted @ 2018-09-25 19:38 覆雨翻云 阅读(9371) 评论(0) 推荐(0) 编辑
摘要: 复合控件复合控件是Delphi控件中非常重要的一种控件,复合控件就是将两个或两个以上的控件重新组合成一个新的控件。例如TspinEdit、TlabeledEdit、TDBNavigator等就是复合控件,TDBNavigator其实就是在一个Panel放上若干个Button而已。制作一个复合控件时, 阅读全文
posted @ 2018-09-21 15:44 覆雨翻云 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 有时候需要获取连接到SQL Server服务器上的客户端IP地址,用什么办法呢? SELECT *FROM sys.dm_exec_connections WHERE session_id = @@SPID 这个办法不知道在SQL2005和以前版本是否可以 如果是SQL Server2008,还可以 阅读全文
posted @ 2018-09-09 09:26 覆雨翻云 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 1、select * from sys.dm_tran_locks或sp_LOCK 查看request_node 字段中为'X'(排他锁)或'IX'(意向排他锁)2、用sp_who2 + pid(进程ID) 查看进程的详细信息3、用dbcc inputbuffer(pid) 查看一起死锁的语句内容 阅读全文
posted @ 2018-09-04 00:00 覆雨翻云 阅读(11018) 评论(0) 推荐(0) 编辑
摘要: procedure TCustomerForm.FindCustomerInfo;var strSql:string;begin // BL_HV_FindCustomerInfo 存储过程的名称,后面是需要的全部的参数 strSql:='exec BL_HV_FindCustomerInfo :S 阅读全文
posted @ 2018-08-28 16:29 覆雨翻云 阅读(474) 评论(0) 推荐(0) 编辑
摘要: varaintf:_Recordset;RecordsAffected:OleVariant; begin ADOStoredProc1.Close;ADOStoredProc1.Open;aintf:=ADOStoredProc1.Recordset;ADOQuery1.Recordset:=ai 阅读全文
posted @ 2018-08-28 16:27 覆雨翻云 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 1、对TcxGrid创建多个Level 2、对TcxGrid的TcxGridLevelOptions的TabsForEmptyDetail设置为True 3、再设置DetailTabsPosition的方向为:dtpTop或则dtpLeft 4、cxGrid的rootleveloptions属性下的 阅读全文
posted @ 2018-08-28 09:24 覆雨翻云 阅读(200) 评论(0) 推荐(0) 编辑
摘要: CREATE TRIGGER [dbo].[updataAlarmLevel]ON [dbo].[Alarm_Alarm_Info]AFTER INSERT, UPDATE – 在更新和插入之后ASBEGINif update(transferNum) or update(potentialLoss 阅读全文
posted @ 2018-08-26 22:49 覆雨翻云 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: #和0的区别: #是对应位有值显示,无值不显示 0是对应位有值显示,无值显示0 分号后的字符串是对负值的格式化特殊定义: s := FormatFloat('00.0;(0.00)',1.123); //返回: 01.1 s := FormatFloat('00.0;(0.00)',-1.123); 阅读全文
posted @ 2018-08-17 10:29 覆雨翻云 阅读(479) 评论(0) 推荐(0) 编辑
摘要: I have several Delphi programs (XE3), that use a TADOConnection to connect to a MS-SQL Server. I recently checked the connections in the "MS SQL Serve 阅读全文
posted @ 2018-08-16 20:30 覆雨翻云 阅读(177) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页