摘要: public class ZHH{ public ZHH() { // // TODO: Add constructor logic here // } /// 转换数字金额主函数(包括小数) /// 数字字符串 /// 转换成中文大写后的字符串或者出错信息提示字符串 public string ConvertSum(string str) { if (!IsPositveDecimal(str)) { return "输入的不是正数字!"; ... 阅读全文
posted @ 2013-02-18 09:59 眯妖 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: Create table Tab([Col1] int,[Col2] nvarchar(1))Insert Tab select 1,N'a' union all select 1,N'b' union all select 1,N'c' union all select 2,N'd' union all select 2,N'e' union all select 3,N'f'create function F_Str(@Col1 int) returns nvarchar(100) asbegi 阅读全文
posted @ 2013-01-07 18:17 眯妖 阅读(233) 评论(0) 推荐(1) 编辑
摘要: create function GetPY(@str varchar(500))returns varchar(500)asbegin declare @cyc int,@length int,@str1 varchar(100),@charcate varbinary(20) set @cyc=1--从第几个字开始取 set @length=len(@str)--输入汉字的长度 set @str1=''--用于存放返回值 while @cyc<=@length begin select @charcate=cast(substring(@... 阅读全文
posted @ 2013-01-07 17:00 眯妖 阅读(4880) 评论(1) 推荐(0) 编辑
摘要: C:\windows\system32>bcdedit /create /d "Ghost" /application bootsectorbcdedit /create {ntldr} -d "Windows Server 2003"bcdedit /set {ntldr} device partition=D:bcdedit /set {ntldr} path \ntldrbcdedit /displayorder {ntldr} /addlastbcdedit /set {ntldr} description "Windows Se 阅读全文
posted @ 2012-12-27 11:00 眯妖 阅读(198) 评论(0) 推荐(0) 编辑
摘要: nslookup -qt=类型 目标域名 [指定的DNS服务器地址:IP或域名] 注意qt必须小写。 类型可以是一下字符,不区分大小写: A 地址记录(Ipv4) AAAA 地址记录(Ipv6) AFSDB Andrew文件系统数据库服务器记录(不懂) ATMA ATM地址记录(不是自动提款机) CNAME 别名记录 HINFO 硬件配置记录,包括CPU、操作系统信息 ISDN 域名对应的ISDN号码 MB 存放指定邮箱的服务器 MG 邮件组记录 MINFO 邮件组和邮箱的信息记录 MR 改名的邮箱记录 MX... 阅读全文
posted @ 2012-12-27 10:55 眯妖 阅读(221) 评论(0) 推荐(0) 编辑
摘要: win7本地用户和组找不到这一项怎么办?说明你的win7 是 家庭版的。直接在开始菜单运行(按win徽标键和字母R键)框里面输入lusrmgr.msc ,如果不能弹出本地用户和组的界面,说明就是家庭版,或者lusrmgr.msc被精简掉了。 超级管理员=ADMINISTRATIOR 1.默认状态下有Administrator身份却不能显示出来。需要打开注册表[开始-〉运行-〉regedit,并且你要有管理员权限]在HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon\下新建注册表项“SpecialAcco 阅读全文
posted @ 2012-12-24 10:22 眯妖 阅读(918) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function grayOut(vis, options) { // Pass true to gray out screen, false to ungray // options are optional. This is a JSON object with the following (optional) properties // opacity:0-100 // Lower number = less grayout higher = more of a blackout ... 阅读全文
posted @ 2012-08-08 18:26 眯妖 阅读(639) 评论(1) 推荐(0) 编辑
摘要: <script type="text/javascript" >//属性定义 Date.prototype.pattern=function(fmt) { var o = { "M+" : this.getMonth()+1, //月份 "d+" : this.getDate(), //日 "h+" : this.getHours()%12 == 0 ? 12 : this.getHours()%12, //小时 "H+" : this.getHours(), //小时 " 阅读全文
posted @ 2012-08-08 12:37 眯妖 阅读(347) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE P_Test@DBName varchar(20),@ID intAS BEGIN EXEC( 'SELECT * FROM '+@DBName+ '.dbo.表名 where ID=@ID') END 阅读全文
posted @ 2012-07-20 10:14 眯妖 阅读(577) 评论(0) 推荐(0) 编辑
摘要: 我一直以为用verify database可以更新数据源,从而获取到parameters,其实这个只能获取数据源的Fields、数据。而使用set datasource location来更新数据源可以获取到parameters。 阅读全文
posted @ 2012-07-11 16:24 眯妖 阅读(672) 评论(0) 推荐(0) 编辑