09 2015 档案
摘要:begin catchDECLARE @ErrMsg nvarchar(4000), @ErrSeverity int SELECT @ErrMsg = ' SP Error: '+ERROR_MESSAGE(), @ErrSeverity = ERROR_SEVERITY() ...
阅读全文
摘要:Function GetVer(FilePathName As String) As String If FilePathName = Nothing Or FilePathName = "" Then FilePathName = App.Path & "\" & App.EX...
阅读全文
摘要:/// /// 判断输入的字符串是否只包含数字和英文字母 /// /// /// public static bool IsNumAndEnCh(string input) { stri...
阅读全文
摘要:Windows程序设计中的MDI(Multiple Document Interface)官方解释就是所谓的多文档界面,与此对应就有单文档界面 (SDI), 它是微软公司从Windows 2.0下的Microsoft Excel电子表格程序开始引入的,Excel电子表格用户有时需要同时操作多份表格,...
阅读全文
摘要:1. 启动外部程序,不等待其退出。2. 启动外部程序,等待其退出。3. 启动外部程序,无限等待其退出。4. 启动外部程序,通过事件监视其退出。实现代码如下:// using System.Diagnostics;private string appName = "calc.exe";/// /// ...
阅读全文
摘要:using System;using System.Runtime.InteropServices;public class VideoAPI //视频API类{ // 视频API调用 [DllImport("avicap32.dll")] public static extern...
阅读全文
摘要:Process[] processes = Process.GetProcesses(); StringBuilder sb = new StringBuilder(); for (int i = 0; i < processes.Length - 1; ...
阅读全文
摘要:在利用code128码字体打印条码是,打印出来的条形码,扫描枪会出现认不出的情况,这种情况是由于直接将文本设置为code128字体而没有给他们指定起始符和休止符引起的。经过查资料获发现好多人遇到这样的问题,特别是利用word,excel直接设置code128字体打印时,一般都会曲线这种问题。发现网上...
阅读全文
摘要:sysobjects 表 在数据库内创建的每个对象(约束、默认值、日志、规则、存储过程等)在表中占一行。只有在 tempdb 内,每个临时对象才在该表中占一行。 列名 数据类型 描述 name sysname 对象名。 Id int 对象标识号。 xtype char(2) 对象类型。可以是下列对象...
阅读全文
摘要:跳过升级,直接激活全新 Win10 的方法步骤教程:下载 Windows 10 系统的 ISO 镜像在你当前的 Win7 / Win 8 / 8.1 系统中,使用DaemonTools或右键选择装载 Win10 的镜像在 Win10镜像里的Sources 文件夹下找到名为「gatherosstate...
阅读全文
摘要:EXCEPT是指在第一个集合中存在,但是不存在于第二个集合中的数据。INTERSECT是指在两个集合中都存在的数据。create table t1(id int,mark char(2))gocreate table t2(id int,mark char(2))goinsert into t1 ...
阅读全文
摘要:private static void Restart() { Thread thtmp = new Thread(new ParameterizedThreadStart(run)); object appName = Ap...
阅读全文
摘要:HAVING对由sum或其它集合函数运算结果的输出进行限制。比如,我们可能只希望看到Store_Information数据表中销售总额超过1500美圆的商店的信息,这时我们就需要使用HAVING从句。语法格式为: SELECT "column_name1", SUM("column_name2") ...
阅读全文
摘要:sql over的作用及用法RANK ( ) OVER ( [query_partition_clause] order_by_clause )DENSE_RANK ( ) OVER ( [query_partition_clause] order_by_clause )可实现按指定的字段分组排序,...
阅读全文
摘要:/*table1结构如下id intname varchar(50)*/declare @id intdeclare @name varchar(50)declare cursor1 cursor for --定义游标cursor1select * from table1 ...
阅读全文

浙公网安备 33010602011771号