永远的SKYFEI
喜欢在阳光下,光着脊梁,挥汗如雨地工作,每次回头擦汗,看到的都是成就!
09 2006 档案
AVOID "throw e" !!!
摘要:There three kind of catch ... throw method: catch(Exception e) { throw e; } catch(Exception) { throw; } ... 阅读全文
posted @ 2006-09-27 17:05 skyfei 阅读(1318) 评论(5) 推荐(0)
用"|" 表示多种状态的按位枚举
摘要:实现效果如FlagsAttribute 那样, 可以有多重属性, 赋值方法如 "FlagsAttribute.Hidden | FlagsAttribute.ReadOnly "首先定一个enum类型例: 1enum Test 2{3 T1 = 1,4 T2 = 2,5 T3 = 4,6 T4 = 8,7 T5 = 168} 每一个元素的值一定要是2 的幂 如 2... 阅读全文
posted @ 2006-09-18 19:21 skyfei 阅读(756) 评论(1) 推荐(0)
管理强类型生成器(Mgmtclassgen.exe) - MSDN
摘要:管理强类型类生成器 (Mgmtclassgen.exe) 管理强类型类生成器工具使您可为指定的 Windows Management Instrumentation (WMI) 类快速生成早期绑定的托管类。生成的类简化了为访问 WMI 类的实例所必须编写的代码。mgmtclassgen WMIClass [options] 参数 说明 WMIClass 为其生成早期绑定的托管类的 ... 阅读全文
posted @ 2006-09-18 14:48 skyfei 阅读(453) 评论(0) 推荐(0)
SQL Server: convert varbinary to varchar
摘要:Use CAST or CONVERT select convert (varbinary (20) , "select") it gives = 0x73656c656374then you can convert that to a varcharselect convert (varchar (20), 0x73656c656374 ) it gives "select" Use ... 阅读全文
posted @ 2006-09-13 10:38 skyfei 阅读(3319) 评论(1) 推荐(0)
Question about sql server's linked server
摘要:create a linked server: EXEC sp_addlinkedserver 'test','','SQLOLEDB','test',null,'driver={sql server};server=ipaddress;uid=sa,pwd=;' exec sp_serveroption N'test', N'rpc out', N'true' exec sp_serve... 阅读全文
posted @ 2006-09-08 17:19 skyfei 阅读(319) 评论(0) 推荐(0)