<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/songkexin" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/songkexin" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 19 Jun 2009 22:55:00 GMT</lastBuildDate><title>可心专栏</title><link>http://blog.csdn.net/songkexin/</link><item><title>网博士建站</title><link>http://blog.csdn.net/songkexin/archive/2009/06/19/4284149.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4284149.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4284149.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4284149</trackback:ping><description>&lt;br /&gt;http://mediweb.com.cn/index.php&lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4284149.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236656994/songkexin/csdn.net/s.gif?r=http://blog.csdn.net/songkexin/archive/2009/06/19/4284149.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236656994/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236656994/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sat, 20 Jun 2009 06:55:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/06/19/4284149.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/06/19/4284149.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/06/19/4284149.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236656994/1131503</fs:itemid></item><item><title>c#加密文件夹源代码</title><link>http://blog.csdn.net/songkexin/archive/2009/05/28/4222710.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4222710.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4222710.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4222710</trackback:ping><description>&lt;br /&gt;using System;&lt;br /&gt;using System.Drawing;&lt;br /&gt;using System.Collections;&lt;br /&gt;using System.ComponentModel;&lt;br /&gt;using System.Windows.Forms;&lt;br /&gt;using System.Data;&lt;br /&gt;using System.IO;&lt;br /&gt;using System.Diagnostics;&lt;br /&gt;using System.Threading;&lt;br /&gt;namespace 伪装文件夹&lt;br /&gt;{&lt;br /&gt;/// &lt;br /&gt;/// Form1 的摘要说明。&lt;br /&gt;/// &lt;br /&gt;public class Form1 : System.Windows.Forms.Form&lt;br /&gt;{&lt;br /&gt;private System.Windows.Forms.GroupBox groupBox1;&lt;br /&gt;private System.Windows.Forms.Button button&lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4222710.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236656995/songkexin/csdn.net/s.gif?r=http://blog.csdn.net/songkexin/archive/2009/05/28/4222710.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236656995/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236656995/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 29 May 2009 01:56:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/05/28/4222710.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/05/28/4222710.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/05/28/4222710.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236656995/1131503</fs:itemid></item><item><title>C#加密方法汇总</title><link>http://blog.csdn.net/songkexin/archive/2009/05/15/4187287.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4187287.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4187287.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4187287</trackback:ping><description>&lt;br /&gt;&lt;br /&gt;//须添加对System.Web的引用 &lt;br /&gt;using System.Web.Security; &lt;br /&gt;&lt;br /&gt;... &lt;br /&gt;&lt;br /&gt;/// &lt;br /&gt;/// SHA1加密字符串 &lt;br /&gt;/// &lt;br /&gt;/// 源字符串&lt;br /&gt;/// 加密后的字符串&lt;br /&gt;public string SHA1(string source) &lt;br /&gt;{ &lt;br /&gt;    return FormsAuthentication.HashPasswordForStoringInConfigFile(source, &quot;SHA1&quot;); &lt;br /&gt;} &lt;br /&gt;/// &lt;br /&gt;/// MD5加密字符串 &lt;br /&gt;/// &lt;br /&gt;/// 源字符串&lt;br /&gt;/// &lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4187287.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236656996/songkexin/csdn.net/s.gif?r=http://blog.csdn.net/songkexin/archive/2009/05/15/4187287.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236656996/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236656996/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 15 May 2009 15:46:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/05/15/4187287.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/05/15/4187287.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/05/15/4187287.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236656996/1131503</fs:itemid></item><item><title>用dos如何登陆邮箱啊？</title><link>http://blog.csdn.net/songkexin/archive/2009/05/13/4177555.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4177555.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4177555.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4177555</trackback:ping><description>&lt;br /&gt;方法一：打开“开始”菜单中的“运行”对话框，输入命令telnet 及远程服务器端口号，如： &lt;br /&gt;：telnet pop.china.com 110 就会与“中华网”的pop3服务器pop.china.com建立连接。 &lt;br /&gt;方法二：在telnet界面之下，打开其主菜单上的“连接\远程系统”对话框，在“主机名”中输入：pop.china.com ，在“端口”中输入：110 ，终端类型就使用系统默认的vt100,这样设置之后，其执行结果与方法一相同。 &lt;br /&gt;如果上述连接成功，POP3服务器就会回应如下信息(显示在终端上)： &lt;br /&gt;+OK AIMC POP service (mail0.china.com) is ready. &lt;br /&gt;在简单介绍telnet工具后，我们来了解如何用Telnet工具收取和发送电子邮件，以本人的电子邮箱xu_xifeng@china.com为例进行说明(密码为：password)，显然这个邮箱在“中华网”上，要收取“中华网”上的电子邮件，必须先登录到中华网的POP3服务器上，登录过程上面已经将过，在登录成功之后，紧接着输&lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4177555.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/236656997/songkexin/csdn.net/s.gif?r=http://blog.csdn.net/songkexin/archive/2009/05/13/4177555.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236656997/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236656997/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 13 May 2009 23:58:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/05/13/4177555.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/05/13/4177555.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/05/13/4177555.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236656997/1131503</fs:itemid></item><item><title>Response.ContentType 详细列表</title><link>http://blog.csdn.net/songkexin/archive/2009/05/10/4164719.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4164719.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4164719.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4164719</trackback:ping><description>&lt;br /&gt;Response.ContentType 详细列表&lt;br /&gt;不同的ContentType 会影响客户端所看到的效果.默认的ContentType为 text/html 也就是网页格式.&lt;br /&gt;代码如:&lt;br /&gt;&lt;% response.ContentType =&quot;text/html&quot; %&gt;&lt;br /&gt;&lt;br /&gt;显示的为网页,而&lt;br /&gt;&lt;% response.ContentType =&quot;text/plain&quot; %&gt;&lt;br /&gt;&lt;br /&gt;则会显示html原代码.&lt;br /&gt;以下为一些常用的 ContentType&lt;br /&gt;GIF images&lt;br /&gt;&lt;% response.ContentType =&quot;image/gif&quot; %&gt;&lt;br /&gt;&lt;br /&gt;JPEG images&lt;br /&gt;&lt;%&lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4164719.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236656998/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236656998/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 10 May 2009 17:03:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/05/10/4164719.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/05/10/4164719.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/05/10/4164719.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236656998/1131503</fs:itemid></item><item><title>Asp.Net 动态生成验证码</title><link>http://blog.csdn.net/songkexin/archive/2009/05/10/4164711.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4164711.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4164711.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4164711</trackback:ping><description>&lt;br /&gt; 我们在设计用户登录模块时，经常会用到验证码，可以有效地防止黑客软件的恶意破解，现公开我常用的验证码的源代码，&lt;br /&gt;　　 使用方法：&lt;br /&gt;　　 1、在Web项目中添加一个类，如“CreateImage.cs”，然后将我公布的源代码Copy进去；&lt;br /&gt;　　 2、再新建一个Web窗体，如“Image.aspx”，在Page_Load中加入代码 “CreateImage.DrawImage ();”当然别忘了加上对类的引用哦！！&lt;br /&gt;　　 3、在页面的合适位置上（你想放验证码的位置）上加上如下javascript代码就OK 了，&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;　　源代码如下：&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;　　/// &lt;br /&gt;　　/// 验证码模块&lt;br /&gt;　　/// &lt;br /&gt;　　public class CreateImage&lt;br /&gt;　　{&lt;br /&gt;　　public static void DrawImage()&lt;br /&gt;　　{&lt;br /&gt;　　CreateImage img=new CreateImage();&lt;br /&gt;&lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4164711.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236656999/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236656999/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 10 May 2009 17:00:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/05/10/4164711.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/05/10/4164711.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/05/10/4164711.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236656999/1131503</fs:itemid></item><item><title>.net下验证码的简单实现</title><link>http://blog.csdn.net/songkexin/archive/2009/05/10/4164655.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4164655.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4164655.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4164655</trackback:ping><description>今天在公司忙完工作后总结验证码的实现,验证码在我们日常填写表单时很常见的。我从两个方面的实现.net下验证码的实现过程。希望能够给初学者带来帮助，也希望能起到抛砖引玉的作用:一.通过自己写代码实现(牵涉到GDI+相关知识)1.新建一个专门生成验证码的页面如:ValidateCode.aspx2.在该页面的Page_Load事件里实现动态随机生成验证码图片:private void Page_Load(object sender, System.EventArgs e){if(!Page.IsPostBack){//RndNum是一个自定义函数//这里的数字4代表显示的是4位的验证字符串！//string VNum=RndNum(4); string VNum=this.GenerateRandom(4);Session[&quot;VNum&quot;]=VNum;this.Validate_Code(VNum);}&lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4164655.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236657000/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236657000/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sun, 10 May 2009 16:21:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/05/10/4164655.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/05/10/4164655.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/05/10/4164655.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236657000/1131503</fs:itemid></item><item><title>写软件的 需求分析全方位考虑</title><link>http://blog.csdn.net/songkexin/archive/2009/04/22/4099232.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4099232.aspx</wfw:comment><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4099232.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4099232</trackback:ping><description>&lt;br /&gt;  需求总是在回答“需要什么”的问题，而实现总是在解决怎样才能做到的问题。需求是所要达到的目的，就是要在事先确定出到达目的地的路径与方法。为了避免误入歧途，就要避免由于需求分析误差产生的误导。&lt;br /&gt;      首先要明确，“分析”是一个主动思维的过程，而不是一个总结归纳的过程。很多需求调研人员认为，只要把用户提出的原始需求归纳在一起就是需求分析了，这是一个误区。&lt;br /&gt;      针对不同的用途，需求文档可能会表现为不同的撰写方式。&lt;br /&gt;      1．售前方案书：在项目签约之前为用户提供的重点功能描述。&lt;br /&gt;      2．需求分析报告：为项目双方约定设计任务的基本内容，限定设计任务的边界。&lt;br /&gt;      3．需求规格说明书：对系统的设计目标与功能体系进行相对完整的说明，在需求报告的基础上，增加对设计过程的支持与约束。&lt;br /&gt;      前两种方案对项目的实现过程影响不是很大，需求规格说明经常是系统架构设计所要参照的重要文件，这是将要阐述的主题。&lt;br /&gt;      在分析过程中经常需要注意到的问题有以下几个方面。&lt;br /&gt;&lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4099232.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236657001/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236657001/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 22 Apr 2009 13:58:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/04/22/4099232.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/04/22/4099232.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/04/22/4099232.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236657001/1131503</fs:itemid></item><item><title>一条sql 数据库去除重复记录</title><link>http://blog.csdn.net/songkexin/archive/2009/04/22/4099231.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4099231.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4099231.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4099231</trackback:ping><description>&lt;br /&gt;假如有一张users表,里面有user_id,user_name两个字段,用一条sql语句去掉数据库里的userName重复的记录.&lt;br /&gt;&lt;br /&gt;1.delete from users a  where a.user_id = (select max(b.user_id) from users b where a.user_name=b.user_name);&lt;br /&gt;这一种自联接,效率低一点.&lt;br /&gt;&lt;br /&gt;2.delete from users where user_id not in(select max(user_id) from users group by user_name having count(user_name)&gt;=1);&lt;br /&gt;这一种先分组,效率高一些.&lt;br /&gt;在此作下符号,希望对同行的朋友们有所启示.&lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4099231.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236657002/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236657002/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 22 Apr 2009 13:54:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/04/22/4099231.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/04/22/4099231.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/04/22/4099231.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236657002/1131503</fs:itemid></item><item><title>C#附加SQL2005数据库详细代码</title><link>http://blog.csdn.net/songkexin/archive/2009/04/09/4059920.aspx</link><wfw:comment>http://blog.csdn.net/songkexin/comments/4059920.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/songkexin/comments/commentRss/4059920.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=4059920</trackback:ping><description>方法一：1.如果附加数据库时，没有指定逻辑名，则在SQL2005上显示为“全路径，且为大写”。比如，数据库文件D:MyTest.mdf和D:MyTest.ldf，附加到SQL服务器上时，如果没有指定逻辑名，则在SQL2005上显示为“D:MYTEST.MDF”。此时，C#的连接字符串为“DataSource=dsName;AttatchDBFilename=”D:\MyTest.mdf”;User ID=id;Password=pw”；2.如果附加数据库时，指定了逻辑名，则在SQL2005上显示为“逻辑名”，此时，C#的连接字符串为“DataSource=dsName;AttatchDBFilename=”D:\MyTest.mdf”;Initial Catalog=aa_LogicName;User ID=id;Password=pw”；3.被附加的数据库名称不可随意更改；否则容易出现错误。方法二：string DbPath=System.Environment.CurrentDirectory +@&quot;\Demo&lt;img src =&quot;http://blog.csdn.net/songkexin/aggbug/4059920.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/csdn.net/songkexin/236657003/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/csdn.net/songkexin/236657003/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><pubDate>Fri, 10 Apr 2009 00:30:00 +0800</pubDate><author>可心</author><comments>http://blog.csdn.net/songkexin/archive/2009/04/09/4059920.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/songkexin/archive/2009/04/09/4059920.aspx</guid><dc:creator>可心</dc:creator><fs:srclink>http://blog.csdn.net/songkexin/archive/2009/04/09/4059920.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/songkexin/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/songkexin/~1131510/236657003/1131503</fs:itemid></item></channel></rss>