<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_D调的华丽</title><subtitle type="text">     认认真真做事，踏踏实实写代码</subtitle><id>http://feed.cnblogs.com/blog/u/27858/rss</id><updated>2011-10-13T14:45:53Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/27858/rss"/><entry><id>http://www.cnblogs.com/elzero/archive/2008/09/04/1283738.html</id><title type="text">SQL Server 2005 中新CTE语法 递归性能测试</title><summary type="text">     SQL Server 205针对数据操作语言DML增加了相当多的语法，例如 CTE,Pivot,UnPivot 等，今天想把以前的展开BOM(Bill of Materials)的旧方法用CET实现，看可不可以提高性能，测试最后还是不要动好。CET（Common table expression）兼具视图表和衍生数据表的能力。你可以视之为临时的视图表，或是在同一批处理查询语法中可重复使用的衍生数据表。</summary><published>2008-09-04T03:08:00Z</published><updated>2008-09-04T03:08:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2008/09/04/1283738.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2008/09/04/1283738.html"/></entry><entry><id>http://www.cnblogs.com/elzero/archive/2008/09/03/1282772.html</id><title type="text">合并 GridView 的单元格</title><summary type="text">     在用GridView展示数据的时候需要把相同的列的单元格横或坚合并在一起(如下图所示)，以前做这样的图一直用Repeater，但Repeater分页没有用GridView快，直接点分页就可以自动完成（人懒)，现在换成用GridView做，没想到更简单</summary><published>2008-09-03T03:38:00Z</published><updated>2008-09-03T03:38:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2008/09/03/1282772.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2008/09/03/1282772.html"/></entry><entry><id>http://www.cnblogs.com/elzero/archive/2008/09/02/1281925.html</id><title type="text">在Crystal Report中将数字转为英文</title><summary type="text">     最近一个项目中需要水晶报表打印Invoice，在汇总金额的同时要把金额转换为英文表示，最开始的时候客户需求是只在Invoice最后一页总汇总的时候才需要显示英文，所以当被直接在.net中转好英文，然后再在数据源xsd设置多一个英文字段传到报表中。使用一段时间后客户要求每一页Invoice需要汇总英文，麻烦来了，如果要传参数法，将不能确定水晶报表分几页也没法传不固定参数，于是直接在水晶报表中写了转换方法，需要这样要求的朋友可以自己改改</summary><published>2008-09-02T04:04:00Z</published><updated>2008-09-02T04:04:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2008/09/02/1281925.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2008/09/02/1281925.html"/></entry><entry><id>http://www.cnblogs.com/elzero/archive/2007/08/25/869329.html</id><title type="text">连接远程服务器共享</title><summary type="text">在代码中实现 net use 连接远程服务器共享</summary><published>2007-08-25T06:02:00Z</published><updated>2007-08-25T06:02:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2007/08/25/869329.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2007/08/25/869329.html"/></entry><entry><id>http://www.cnblogs.com/elzero/archive/2007/08/25/869325.html</id><title type="text">在代码中恢复sql server 数据库</title><summary type="text">1SQLDMO.SQLServersvr=newSQLDMO.SQLServerClass();2try3{4svr.Connect(Encrypt.UNDES("localhost","sa","password");5SQLDMO.QueryResultsqr=svr.EnumProcesses(-1);6intiColPIDNum=-1;7intiColDbName=-1;8for(inti...</summary><published>2007-08-25T05:57:00Z</published><updated>2007-08-25T05:57:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2007/08/25/869325.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2007/08/25/869325.html"/></entry><entry><id>http://www.cnblogs.com/elzero/archive/2007/08/25/869321.html</id><title type="text">获取同一网段内的SQL SERVER实例</title><summary type="text">ArrayList arrSqlServer = new ArrayList(); SQLDMO.ApplicationClass oApp = new SQLDMO.ApplicationClass(); try { SQLDMO.NameList sList = oApp.ListAvailableSQLServers(); if (sList != null) { for (int i = ...</summary><published>2007-08-25T05:53:00Z</published><updated>2007-08-25T05:53:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2007/08/25/869321.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2007/08/25/869321.html"/></entry><entry><id>http://www.cnblogs.com/elzero/archive/2007/07/17/821288.html</id><title type="text">C#动态加载DLL </title><summary type="text">利用反射进行动态加载和调用.Assemblyass=Assembly.LoadFrom(DllPath); //利用dll的路径加载,同时将此程序集所依赖的程序集加载进来,需后辍名.dllAssembly.LoadFile 只加载指定文件，并不会自动加载依赖程序集.Assmbly.Load无需后辍名加载dll后,需要使用dll中某类.Type type=ass.GetType(&amp;#8220;Typ...</summary><published>2007-07-17T07:47:00Z</published><updated>2007-07-17T07:47:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2007/07/17/821288.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2007/07/17/821288.html"/></entry><entry><id>http://www.cnblogs.com/elzero/archive/2007/07/17/821273.html</id><title type="text">Asp.net 文件下载</title><summary type="text">用时候当系统文件关联直接下载的话会调用程序打开，或者想验证后才能给用户下载，那么可以用这个方法实现</summary><published>2007-07-17T07:35:00Z</published><updated>2007-07-17T07:35:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2007/07/17/821273.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2007/07/17/821273.html"/></entry><entry><id>http://www.cnblogs.com/elzero/archive/2007/07/16/820228.html</id><title type="text">在网页处理按键事件</title><summary type="text">&amp;lt;SCRIPT LANGUAGE="JavaScript"&amp;gt; &amp;lt;!-- function hotkey() { var a=window.event.keyCode; if((a==65)&amp;amp;&amp;amp;(event.ctrlKey)) { alert("你按了ctrl+a键吧"); } }// end hotkey document.onkeydown = hotkey; ...</summary><published>2007-07-16T10:35:00Z</published><updated>2007-07-16T10:35:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2007/07/16/820228.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2007/07/16/820228.html"/></entry><entry><id>http://www.cnblogs.com/elzero/archive/2007/07/16/819256.html</id><title type="text">SQL语句导入导出大全</title><summary type="text">/*******  导出到excel&#xD;EXEC master..xp_cmdshell 'bcp 数据库名.dbo.表名 out "c:\test.xls" -c -S"服务器名" -U"sa" -P"123456789!@#"'&#xD;&#xD;/导出到存在的表&#xD;insert into OPENROWSET('MICROSOFT.JET.OLEDB.4.0'&#xD;,'Excel 5.0;HDR=YES;DATABASE=c:\Book1.xls',sheet1$)&#xD;select top * from table1&#xD;&#xD;/***********  导入Excel&#xD;SELECT * &#xD;FROM OpenDataSource( 'Microsoft.Jet.OLEDB.4.0',&#xD;  'Data Source="c:\test.xls";User ID=Admin;Password=;Extended properties=Excel 5.0')...[表名$]&#xD;</summary><published>2007-07-16T00:01:00Z</published><updated>2007-07-16T00:01:00Z</updated><author><name> D</name><uri>http://www.cnblogs.com/elzero/</uri></author><link rel="alternate" href="http://www.cnblogs.com/elzero/archive/2007/07/16/819256.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/elzero/archive/2007/07/16/819256.html"/></entry></feed>
