<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_天天@BLOG</title><subtitle type="text">脖子越来越疼，脑袋越来越钝</subtitle><id>http://feed.cnblogs.com/blog/u/13180/rss</id><updated>2012-01-19T05:43:33Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/13180/rss"/><entry><id>http://www.cnblogs.com/terry52/archive/2012/01/19/2326342.html</id><title type="text">C# 串口通信整理</title><summary type="text">C#串口操作系列：http://blog.csdn.net/wuyazhe/article/category/695097 （精品，5个系列都有，感谢wuyazhe博主）两个完整例子：http://dldx.csdn.net/fd.php?i=35144030363803&amp;amp;s=210244c0411405405a6adaa4d8818c02http://bbs.csu.edu.cn/bbs/forum.php?mod=attachment&amp;amp;aid=MjcyNDJ8YWYyNDFmNDd8MTMxNjg5Mzk2NXww一篇经典论文：《基于C#环境的单片机（89C51）与PC的串</summary><published>2012-01-19T05:44:00Z</published><updated>2012-01-19T05:44:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2012/01/19/2326342.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2012/01/19/2326342.html"/><content type="html">&lt;span  style="font-family: simsun; line-height: 23px; background-color: #ffffff; "&gt;C#串口操作系列：&lt;br /&gt;http://blog.csdn.net/wuyazhe/article/category/695097 （精品，5个系列都有，感谢wuyazhe博主）&lt;br /&gt;&lt;br /&gt;两个完整例子：&lt;br /&gt;http://dldx.csdn.net/fd.php?i=35144030363803&amp;amp;s=210244c0411405405a6adaa4d8818c02&lt;br /&gt;http://bbs.csu.edu.cn/bbs/forum.php?mod=attachment&amp;amp;aid=MjcyNDJ8YWYyNDFmNDd8MTMxNjg5Mzk2NXww&lt;br /&gt;&lt;br /&gt;一篇经典论文：《基于C#环境的单片机（89C51）与PC的串行通信》（其它网站的考完都要收费，这个勉强可以看完）&lt;br /&gt;http://www.doc88.com/p-78747714418.html&lt;br /&gt;&lt;br /&gt;一些其它博客或空间的相关案例：&lt;br /&gt;&lt;/span&gt;&lt;p&gt;&lt;span  style="font-family: simsun; line-height: 23px; background-color: #ffffff; "&gt;&amp;nbsp;http://blog.csdn.net/johnpher/article/details/7003886（C#与51单片机串口通信）&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span  style="font-family: simsun; line-height: 23px; background-color: #ffffff; "&gt;http://www.cnblogs.com/wuhuacong/archive/2011/07/19/2111055.html&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span  style="font-family: simsun; line-height: 23px; background-color: #ffffff; "&gt;UDP协议的单片机通信实例： http://www.cnblogs.com/dongdonghuihui/archive/2009/09/25/1573782.html&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/terry52/aggbug/2326342.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/terry52/archive/2012/01/19/2326342.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/terry52/archive/2011/07/26/2117540.html</id><title type="text">可嵌入到Winform程序里网络端口测试小工具</title><summary type="text">下载地址：http://files.cnblogs.com/terry52/NetworkTool.zip</summary><published>2011-07-26T10:32:00Z</published><updated>2011-07-26T10:32:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2011/07/26/2117540.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2011/07/26/2117540.html"/><content type="html">下载地址：&lt;a href="http://files.cnblogs.com/terry52/NetworkTool.zip"&gt;http://files.cnblogs.com/terry52/NetworkTool.zip&lt;/a&gt;&lt;img src="http://www.cnblogs.com/terry52/aggbug/2117540.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/terry52/archive/2011/07/26/2117540.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/terry52/archive/2011/07/26/2117537.html</id><title type="text">加密小工具</title><summary type="text">下载地址：http://files.cnblogs.com/terry52/EncryptAndDecrypt.rar</summary><published>2011-07-26T10:31:00Z</published><updated>2011-07-26T10:31:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2011/07/26/2117537.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2011/07/26/2117537.html"/><content type="html">下载地址：&lt;a href="http://files.cnblogs.com/terry52/EncryptAndDecrypt.rar"&gt;http://files.cnblogs.com/terry52/EncryptAndDecrypt.rar&lt;/a&gt;&lt;img src="http://www.cnblogs.com/terry52/aggbug/2117537.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/terry52/archive/2011/07/26/2117537.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/terry52/archive/2011/01/27/1946278.html</id><title type="text">还原数据库出错：”因为数据库正在使用，所以无法获得对数据库的独占访问权“的解决方案</title><summary type="text">还原数据库出错：”因为数据库正在使用，所以无法获得对数据库的独占访问权“的解决方案在还原数据库时,有时会提示因为数据库正在使用，所以无法获得对数据库的独占访问权!!这时需要在还原数据库前先杀死正在使用数据库的线程.该解决方案用到了系统表中的sysprocesses ，若要访问 sysprocesses，您必须定位到master 数据库。以下是杀死正在使用'V091222'数据库的线程:use masterdeclare @dbname varchar(20)set @dbname='v091222'declare @sql nvarchar(500)declare @spid int--SPI</summary><published>2011-01-27T07:33:00Z</published><updated>2011-01-27T07:33:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2011/01/27/1946278.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2011/01/27/1946278.html"/><content type="html">&lt;div&gt;&lt;span style="font-family: Simsun; color: #000040; "&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;还原数据库出错：&amp;#8221;因为数据库正在使用，所以无法获得对数据库的独占访问权&amp;#8220;的解决方案&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;在还原数据库时,有时会提示因为数据库正在使用，所以无法获得对数据库的独占访问权!!&lt;br style="line-height: 1.5em !important; " /&gt;这时需要在还原数据库前先杀死正在使用数据库的线程.&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;该解决方案用到了系统表中的sysprocesses ，若要访问 sysprocesses，您必须定位到master 数据库。&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;以下是杀死正在使用'V091222'数据库的线程:&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;use master&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;declare @dbname varchar(20)&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;set @dbname='v091222'&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;declare @sql nvarchar(500)&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;declare @spid int--SPID 值是当用户进行连接时指派给该连接的一个唯一的整数&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;set @sql='declare getspid cursor for&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;select spid from sysprocesses where dbid=db_id('''+@dbname+''')'&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;exec (@sql)&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;open getspid&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;fetch next from getspid into @spid&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;while @@fetch_status&amp;lt;&amp;gt;-1--如果FETCH 语句没有执行失败或此行不在结果集中。&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;begin&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;exec('kill '+@spid)--终止正常连接&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;fetch next from getspid into @spid&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;end&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;close getspid&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;deallocate getspid&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; line-height: 21px; "&gt;本文来自CSDN博客，转载请标明出处：http://blog.csdn.net/suxiaoli050421132/archive/2010/02/24/5321875.aspx&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/terry52/aggbug/1946278.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/terry52/archive/2011/01/27/1946278.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/terry52/archive/2008/07/07/1237333.html</id><title type="text">ORACLE备份解决方案</title><summary type="text">Oracle数据库有三种标准的备份方法，它们分别是导出／导入（EXP/IMP）、热备份和冷备份。导出备件是一种逻辑备份，冷备份和热备份是物理备份。一、 导出／导入（Export／Import）利用Export可将数据从数据库中提取出来，利用Import则可将提取出来的数据送回到Oracle数据库中去。 １、简单导出数据（Export）和导入数据（Import） Oracle支持三种方式类型的输出：...</summary><published>2008-07-07T03:06:00Z</published><updated>2008-07-07T03:06:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2008/07/07/1237333.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2008/07/07/1237333.html"/></entry><entry><id>http://www.cnblogs.com/terry52/archive/2008/07/04/1235252.html</id><title type="text">linux下cron定时执行工具</title><summary type="text">Untitledcron是一个linux下的定时执行工具，可以在无需人工干预的情况下运行作业。由于Cron是Linux的内置服务，但它不自动起来，可以用以下的方法启动、关闭这个服务：　　/sbin/service crond start //启动服务 　　/sbin/service crond stop //关闭服务 　　/sbin/service crond restart //重启服务 　　/...</summary><published>2008-07-04T01:27:00Z</published><updated>2008-07-04T01:27:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2008/07/04/1235252.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2008/07/04/1235252.html"/></entry><entry><id>http://www.cnblogs.com/terry52/archive/2008/07/02/1234101.html</id><title type="text">ORACLE详解:数据库名、实例名、ORACLE_SID、数据库域名、全局数据库名、服务名(转)</title><summary type="text">详解:数据库名、实例名、ORACLE_SID、数据库域名、全局数据库名、服务名----------------------------------------------------数据库名、实例名、数据库域名、全局数据库名、服务名，这是几个令很多初学者容易混淆的概念。相信很多初学者都与我一样被标题上这些个概念搞得一头雾水。我们现在就来把它们弄个明白。一、数据库名什么是数据库名？数据库名就是一个数...</summary><published>2008-07-02T08:19:00Z</published><updated>2008-07-02T08:19:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2008/07/02/1234101.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2008/07/02/1234101.html"/></entry><entry><id>http://www.cnblogs.com/terry52/archive/2008/06/20/1227118.html</id><title type="text">禁止服务器端缓存</title><summary type="text">禁止服务器端缓存：Response.Expires = 0 或&amp;lt;meta http-equiv="Expires" CONTENT="0"&amp;gt;禁用客户端缓存。HTML网页 &amp;lt;META HTTP-EQUIV="pragma" CONTENT="no-cache"&amp;gt; &amp;lt;META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, mu...</summary><published>2008-06-20T14:42:00Z</published><updated>2008-06-20T14:42:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2008/06/20/1227118.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2008/06/20/1227118.html"/></entry><entry><id>http://www.cnblogs.com/terry52/archive/2008/06/18/1224604.html</id><title type="text">JS对URL的操作</title><summary type="text">URL即:统一资源定位符(UniformResourceLocator,URL)完整的URL由这几个部分构成：scheme://host:port/path?query#fragmentscheme:通信协议常用的http,ftp,maito等host:主机服务器(计算机)域名系统(DNS)主机名或IP地址。port:端口号整数，可选，省略时使用方案的默认端口，如http的默认端口为80。path...</summary><published>2008-06-18T05:39:00Z</published><updated>2008-06-18T05:39:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2008/06/18/1224604.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2008/06/18/1224604.html"/></entry><entry><id>http://www.cnblogs.com/terry52/archive/2008/03/13/1103190.html</id><title type="text">JavaScript 弹出窗口总结(转)</title><summary type="text">1: window.open&amp;lt;!--window.open('page.html', 'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')//写成一行--&amp;gt;参数解释：window.ope...</summary><published>2008-03-13T01:31:00Z</published><updated>2008-03-13T01:31:00Z</updated><author><name>天天在线</name><uri>http://www.cnblogs.com/terry52/</uri></author><link rel="alternate" href="http://www.cnblogs.com/terry52/archive/2008/03/13/1103190.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/terry52/archive/2008/03/13/1103190.html"/></entry></feed>
