摘要: 因工作需要,在数据库完成某个操作后,如果失败要通知相关人员.在网上看到的例子大多数都不检查SSL安全登录,因而修改后就放上来了,看红色是修改过的地方.CREATE PROCEDURE sys_sendmail @From varchar(100), @To varchar(100), @Bcc varchar(500), @Subject varchar(400)=" ", @Body ... 阅读全文
posted @ 2009-05-12 11:50 novel 阅读(369) 评论(0) 推荐(0)
摘要: create table #ip(id int identity(1,1),re varchar(200)) declare @s varchar(1000) set @s='ping '+left(@@servername,charindex('\\',@@servername+'\\')-1)+' -a -n 1 -l 1' insert #ip(re) exec ... 阅读全文
posted @ 2009-03-23 15:48 novel 阅读(381) 评论(0) 推荐(0)
摘要: 在网上看到一段BCB的代码: 测试神龙卡路数,其中pDecoderFilter要对应不同的设备。 int iDev = 0; for (int i = 0; i S_OK) then break; inc(iDev); end; showmessage(IntToStr(iDev)); //const CLSID_RM_MPEG2_VIDEO_SUBPIC... 阅读全文
posted @ 2009-03-04 09:44 novel 阅读(204) 评论(0) 推荐(0)
摘要: XML:如下 1 user1 2 user2 问题: 1)[删除]1的记录并保存 2)[修改]]2记录的 为并保存 3)我要[添加]一个 3 ... 阅读全文
posted @ 2009-02-20 08:47 novel 阅读(629) 评论(0) 推荐(0)
摘要: Pen p = new Pen(Color.Black, 5); Graphics g = this.panelControl2.CreateGraphics(); //this.CreateGraphics(); //DrawArrow(g, p, 50, 20, 100, 20); p.DashSt... 阅读全文
posted @ 2009-01-02 08:43 novel 阅读(5737) 评论(4) 推荐(1)
摘要: DataTable dt = new DataTable(); dt.Columns.Add("id"); dt.Columns.Add("name"); dt.Rows.Add(new object[]{1, "aaa"}); dt.Rows.Add(new object[]{2, "bbb"}); dt.Rows... 阅读全文
posted @ 2008-12-31 08:32 novel 阅读(756) 评论(2) 推荐(0)
摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->private void view_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndic... 阅读全文
posted @ 2008-12-31 08:30 novel 阅读(709) 评论(0) 推荐(0)
摘要: 可能的原因是:在你的项目中引用了第三方组件,并且这个第三方组件是个商业组件,他在组件的主使用类定义了LicenseProvider(typeof(LicFileLicenseProvider)) 这个Attribute。 VS2005在编译时检测到这个类的时候,会检查到组件使用的是LicFileLicenseProvider这个属性,表示有组件使用的是把... 阅读全文
posted @ 2008-12-31 08:28 novel 阅读(461) 评论(0) 推荐(0)
摘要: 无法在证书存储区中找到清单签名证书 第一种办法:用记事本打开对应csproj文件。将 change " true " to "false". that's ok! 第二种办法: 在vs2005中出现“无法在证书存储区中找到清单签名证书”,解决办法是用记事本打开项目的.csproj文件,删除类似以下xml就能顺利通过编译了 B531F2CF222748C5E29308FC224770... 阅读全文
posted @ 2008-12-17 08:34 novel 阅读(345) 评论(0) 推荐(0)
摘要: 1.读/写connectionStrings/appSettings Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public static string GetConnectionStringsConfig(string connect... 阅读全文
posted @ 2008-12-16 16:42 novel 阅读(860) 评论(0) 推荐(0)