上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: var numberChars = "0123456789";/* Convert to decimal string */function toDecimalString(value, place, hasDollarSign) { var n = 2; var ds = true; ... 阅读全文
posted @ 2014-06-10 10:19 xachary 阅读(6652) 评论(0) 推荐(0) 编辑
摘要: --不同SQL Server数据库之间的跨数据库查询EXEC sp_addlinkedserver@server=N'OldDatabase', --自己定义别名@srvproduct=N'',@provider=N'SQLNCLI',@datasrc=N'10.199.123.123\SQL200... 阅读全文
posted @ 2014-06-04 11:38 xachary 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 添加重要的命名空间:using System.Runtime.InteropServices;先建立结构相同(char长度相同)的Struct类型用于转换:[StructLayout(LayoutKind.Sequential, Pack = 1)] public struct Employe... 阅读全文
posted @ 2014-05-22 10:09 xachary 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 想使用using(...), 如:using (Getter process = new Getter()){ //...}就必须给类实现接口IDisposablepublic sealed class Getter: IDisposable { #region ... 阅读全文
posted @ 2014-05-21 15:47 xachary 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 首先在SQLServer定义一个自定义表类型:USE [ABC]GOCREATE TYPE [ABC].[MyCustomType] AS TABLE( [EmployeeId] [char](6) NOT NULL, [LastName] [varchar](30) NULL, ... 阅读全文
posted @ 2014-05-21 09:42 xachary 阅读(5542) 评论(0) 推荐(1) 编辑
摘要: static void Main(string[] args) { //定义与目标表结构相同的DataTable DataTable dataTable = new DataTable(); dataTable.Colu... 阅读全文
posted @ 2014-05-21 09:31 xachary 阅读(208) 评论(0) 推荐(0) 编辑
摘要: @echo off:openchoice /c:123 /m "1:创建,2:终止,3:删除"if errorlevel 3 goto deleteif errorlevel 2 goto endif errorlevel 1 goto create:create@schtasks /create ... 阅读全文
posted @ 2014-05-19 15:31 xachary 阅读(2593) 评论(0) 推荐(0) 编辑
摘要: 以下Function可以用于textbox的KeyUp事件:2014-06-06 发现旧版IE不支持selectionStart还有字符串的"[]"索引获取值, 已经修复这个bug.2014-06-10 修复上一次修复遗留的IE的bug./*Validate the textbox value is... 阅读全文
posted @ 2014-05-19 11:38 xachary 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 以下是一个相对简陋的扩展, 主要是针对金额显示的Textbox扩展.using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI.WebControls;usi... 阅读全文
posted @ 2014-05-16 15:20 xachary 阅读(324) 评论(0) 推荐(0) 编辑
摘要: Row_number配合over(partition by xx order by xx) 与 Group by 的区别, = order + group?Guidance Automation Toolkit 2010 ReferenceBETWEEN 操作符实例如需以字母顺序显示介于 "Adam... 阅读全文
posted @ 2014-05-15 13:13 xachary 阅读(112) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页