2006-12-30 23:34 by Haozes, 297 visits, 网摘, 收藏, 编辑
摘要:方法一:调用SQL DMO 用C#调用COM http://dev.csdn.net/develop/article/28/28564.shtm 不多说了方法二:1.备份数据库backupdatabase被备份的数据库名todisk='备份文件路径';2.恢复数据库AlterDatabase被恢复的数据库名SetOfflinewithRollbackimmediate;restoredatabas...
阅读全文
2006-12-30 13:00 by Haozes, 295 visits, 网摘, 收藏, 编辑
摘要:主要有两种方式,第一种是引用C:\winnt\system32\msjro.dll 的COM组件,第二种不引用,直接用C#操作第一种(未测试过,比较麻烦不是?):添加引用COM:C:\winnt\system32\msjro.dll 调用:using MyJro;//名称空间 void CompressAccess(){ string StrConn1="Provider=Microso...
阅读全文
2006-12-26 01:11 by Haozes, 199 visits, 网摘, 收藏, 编辑
摘要:前天写的一个简单的AJAX,在IE中不正常,却在FF里正常,我以为是二者的DOM分析上有问题,原来是IE的缓存问题,常见的方法解决有:方法1:服务器端代码加入response.setHeader("Cache-Control", "no-cache, must-revalidate");方法2:用JavaScript在Ajax提交的时候加入一个随机数作为URL中的一个参数。req.open(url...
阅读全文
2006-12-23 19:48 by Haozes, 818 visits, 网摘, 收藏, 编辑
摘要:太闲啦,太闲啦,连续一月没上课了.不知他们想我没.昨QQ上一JJ给我看她写的聊天室,刷的眼难受,让我帮她写个不刷新的给她看.就是闲嘛,一切都是Teach Myself,从来没人指导过我.想帮帮她.偶尔有个人帮我我也很感动.顺便自个学点东西吧.一直没用在CNBLOGS上东西,上次发错了,发到首页上去了,写的一个数据结构的代码片断,一大哥骂我不写注释,原来首页就是那个意思,现在我没事就往首页上发,旨在...
阅读全文
2006-12-21 19:49 by Haozes, 1069 visits, 网摘, 收藏, 编辑
摘要:1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;45namespaceSoloDataStructure6{78publicclassBinschDemo9{10publicstaticintBinsch(int[]a,intkey)11{12intlow=1;13inthigh=a.Length;14while(lo...
阅读全文
2006-12-21 19:46 by Haozes, 161 visits, 网摘, 收藏, 编辑
摘要:1usingSystem;23namespaceBiThrTree4{5/**////<summary>6///定义结点类:7///</summary>8classBTNode9{10//先序:先处理父结点,然后递归处理孩子11//中序:先处理左孩子,再处理根节结,然后递归处理右孩子12//后序:先递归处理所有孩子,再递归处理节点本点13publicchardata;14p...
阅读全文
2006-12-19 14:23 by Haozes, 608 visits, 网摘, 收藏, 编辑
摘要:1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;45namespacesoloDataStruct6{7publicclassMyqueue<T>8{9privateintmaxSize;10privateT[]queArray;11privateintfront;12privateintrear;13pr...
阅读全文
2006-12-19 14:19 by Haozes, 473 visits, 网摘, 收藏, 编辑
摘要:1usingSystem;2usingSystem.Collections;3usingSystem.Collections.Generic;4usingSystem.Text;56namespacesoloDatastruct7{8publicclassTNode<T>//树结点9{10publicTdata;//结点值11publicTNode<T>left;//左孩子...
阅读全文
2006-12-17 17:06 by Haozes, 272 visits, 网摘, 收藏, 编辑
摘要:1usingSystem;2usingSystem.Collections;3usingSystem.Collections.Generic;4usingSystem.Text;56namespacesoloDataStruct7{8publicclassMystack<T>9{10privateT[]stackarray;11privateintmaxSize;12privatein...
阅读全文
2006-12-16 20:38 by Haozes, 388 visits, 网摘, 收藏, 编辑
摘要:1usingSystem;2usingSystem.Collections;3usingSystem.Collections.Generic;4namespaceMyLinkList5{6publicclassLNode<T>//结点7{8privateTdata;//结点值9privateLNode<T>nextNode;10privateLNode<T>pr...
阅读全文