<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>hello simon - sql</title><link>http://blog.csdn.net/simonhehe/category/220174.aspx</link><description>..</description><dc:language>zh-CN</dc:language><lastUpdateTime>Tue, 05 Aug 2008 11:14:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>simon</dc:creator><title>一个数据汇总，列合并的例子</title><link>http://blog.csdn.net/simonhehe/archive/2008/08/05/2769547.aspx</link><pubDate>Tue, 05 Aug 2008 11:05:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2008/08/05/2769547.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/2769547.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2008/08/05/2769547.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/2769547.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2769547</trackback:ping><description>一个数据汇总，列合并的例子
select b.* from tba a CROSS APPLY
dbo.test(a.partno, a.vendno, SALESTYPE, qty) b&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/2769547.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title> 数据库自动网络备份</title><link>http://blog.csdn.net/simonhehe/archive/2008/06/14/2546362.aspx</link><pubDate>Sat, 14 Jun 2008 13:41:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2008/06/14/2546362.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/2546362.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2008/06/14/2546362.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/2546362.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2546362</trackback:ping><description> 数据库自动网络备份&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/2546362.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>数据库设计中的14个关键技巧</title><link>http://blog.csdn.net/simonhehe/archive/2008/05/29/2493959.aspx</link><pubDate>Thu, 29 May 2008 17:03:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2008/05/29/2493959.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/2493959.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2008/05/29/2493959.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/2493959.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2493959</trackback:ping><description>主键,外键,设计&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/2493959.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>SQL SERVER 2005 同步复制技术 </title><link>http://blog.csdn.net/simonhehe/archive/2008/05/29/2493939.aspx</link><pubDate>Thu, 29 May 2008 16:59:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2008/05/29/2493939.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/2493939.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2008/05/29/2493939.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/2493939.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2493939</trackback:ping><description>SQL SERVER 2005 同步复制技术 
&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/2493939.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>关于MS SQLSERVER索引优化问题</title><link>http://blog.csdn.net/simonhehe/archive/2008/04/22/2313577.aspx</link><pubDate>Tue, 22 Apr 2008 08:51:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2008/04/22/2313577.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/2313577.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2008/04/22/2313577.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/2313577.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2313577</trackback:ping><description>关于MS SQLSERVER索引优化问题
 有表Stress_test(id  int, key char(2))
        id 上有普通索引;
        key 上有簇索引;
        id 有有限量的重复;
        key 有无限量的重复;

现在我需要按逻辑与查询表中key='Az' AND key='Bw' AND key='Cv' 的id
&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/2313577.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>sql优化技术杂谈</title><link>http://blog.csdn.net/simonhehe/archive/2007/08/23/1756581.aspx</link><pubDate>Thu, 23 Aug 2007 20:08:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/23/1756581.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1756581.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/23/1756581.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1756581.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1756581</trackback:ping><description>微软的SQL SERVER提供了两种索引：聚集索引（clustered index，也称聚类索引、簇集索引）和非聚集索引（nonclustered index，也称非聚类索引、非簇集索引）。动作描述使用聚集索引使用非聚集索引。显而易见，聚集索引的优势是很明显的，而每个表中只能有一个聚集索引的规则，这使得聚集索引变得更加珍贵。在这里之所以提到“理论上”三字，是因为如果您的聚集索引还是盲目地建在ID这个主键上时，您的查询速度是没有这么高的，即使您在“日期”这个字段上建立的索引（非聚合索引）。（2）在主键上建立聚集索引，在fariq上建立非聚集索引：&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1756581.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>触发器(trigger) 日期+流水=编号 </title><link>http://blog.csdn.net/simonhehe/archive/2007/08/23/1756404.aspx</link><pubDate>Thu, 23 Aug 2007 17:17:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/23/1756404.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1756404.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/23/1756404.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1756404.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1756404</trackback:ping><description>create table tb(colID int identity,status int,ID nvarchar(14))go.&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1756404.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>字段最高位加减的简单例子</title><link>http://blog.csdn.net/simonhehe/archive/2007/08/22/1753842.aspx</link><pubDate>Wed, 22 Aug 2007 10:11:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/22/1753842.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1753842.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/22/1753842.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1753842.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1753842</trackback:ping><description>create table #(AAA int)insert into # select 12100insert into # select 12101insert into # select 32101insert into # select 32109.&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1753842.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>分页存储过程</title><link>http://blog.csdn.net/simonhehe/archive/2007/08/21/1753537.aspx</link><pubDate>Tue, 21 Aug 2007 23:11:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/21/1753537.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1753537.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/21/1753537.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1753537.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1753537</trackback:ping><description>--建立测试环境create table tb(id int,list varchar(10))insert tb(id,list)select ‘1‘,‘国内‘ union allselect ‘2‘,‘国外‘ union allselect ‘3‘,‘国内‘ union allselect ‘4‘,‘国外‘ union allselect ‘5‘,‘国外‘ union allselect ‘6‘,‘国内‘ union allselect ‘7‘,‘国外‘ union allselect ‘8‘,‘国内‘ union allselect ‘9‘,‘国内‘ union allselect ‘10‘,‘国内‘ union allselect ‘11‘,‘国外‘go.&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1753537.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>日期+流水=编号 的实现方法</title><link>http://blog.csdn.net/simonhehe/archive/2007/08/20/1752031.aspx</link><pubDate>Mon, 20 Aug 2007 21:14:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/20/1752031.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1752031.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/20/1752031.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1752031.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1752031</trackback:ping><description>create table tb(ID nvarchar(20),col nvarchar(10))go.set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgo.Create function f_getID()returns nchar(11)as.&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1752031.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>跨服务器写触发器</title><link>http://blog.csdn.net/simonhehe/archive/2007/08/15/1745623.aspx</link><pubDate>Wed, 15 Aug 2007 20:56:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/15/1745623.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1745623.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/15/1745623.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1745623.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1745623</trackback:ping><description>跨服务器写触发器&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1745623.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>sql简单事例</title><link>http://blog.csdn.net/simonhehe/archive/2007/08/09/1733665.aspx</link><pubDate>Thu, 09 Aug 2007 14:25:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/09/1733665.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1733665.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/09/1733665.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1733665.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1733665</trackback:ping><description>sql简单事例&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1733665.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>sql2005数据同步技术</title><link>http://blog.csdn.net/simonhehe/archive/2007/08/02/1722681.aspx</link><pubDate>Thu, 02 Aug 2007 15:53:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/02/1722681.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1722681.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/02/1722681.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1722681.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1722681</trackback:ping><description>9．发布服务器和订阅服务器互相注册。----在“快照文件夹“中输入准备工作中创建的目录(指向步骤3所建的共享文件夹)------选择发布数据库-------选择发布类型-------选择订阅服务器类型-------选择要发布的对象------设置快照代理-------填写发布名称。本篇文章发表于www.xker.com(小新技术网)3． 右键本地订阅--------选择发布服务器-------选择订阅方式（如果是在服务器方订阅的话选择推送订阅反之。使用复制技术，用户可以将一份客户端的数据发布到多台服务器上，从而使不同的服务器用户都可以在权限的许可的范围内共享这份数据。&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1722681.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>MSSQL数据库同步</title><link>http://blog.csdn.net/simonhehe/archive/2007/08/02/1722667.aspx</link><pubDate>Thu, 02 Aug 2007 15:50:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/02/1722667.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1722667.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/02/1722667.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1722667.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1722667</trackback:ping><description>MSSQL数据库同步。出版服务器、订阅服务器、分发服务器、出版物、文章。源数据所在的服务器是出版服务器，负责发表数据。出版服务器把要发表的数据的所有改变情况的拷贝复制到分发服务器，分发服务器包含有一个分发数据库，可接收数据的所有改变，并保存这些改变，再把这些改变分发给订阅服务器。(5)单击[下一步]系统要求指定可以订阅该发布的数据库服务器类型，SQLSERVER允许在不同的数据库如ORACLE或ACCESS之间进行数据复制。要是你还不信的话就打开你的数据库看在订阅的服务器的指定订阅数据库下看是不是看到了你刚才所发布的表—&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1722667.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>simon</dc:creator><title>SQL数据同步</title><link>http://blog.csdn.net/simonhehe/archive/2007/08/02/1722659.aspx</link><pubDate>Thu, 02 Aug 2007 15:47:00 GMT</pubDate><guid>http://blog.csdn.net/simonhehe/archive/2007/08/02/1722659.aspx</guid><wfw:comment>http://blog.csdn.net/simonhehe/comments/1722659.aspx</wfw:comment><comments>http://blog.csdn.net/simonhehe/archive/2007/08/02/1722659.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/simonhehe/comments/commentRss/1722659.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1722659</trackback:ping><description>MySQL数据同步主要有三种方式: 1.利用MySQL自身的数据库同步功能 2.利用MySQL数据库的特性(数据库存在固顶目录,并且以文件形式存储),进行数据库目录同步以达到数据同步目的 3.利用专用的MySQL数据库同步软件。mysql的配置文件（一般是my.cnf），在unix环境下在/etc/mysql/my.cnf或者在mysql用户的home目录下的my.cnf。1.增加一个用户最为同步的用户帐号： GRANTFILEON*.*TObackup@‘10.10.10.53‘IDENTIFIEDBY‘1234’ 2.增加一个数据库作为同步数据库： createdatabasebackup B:设置。&lt;img src ="http://blog.csdn.net/simonhehe/aggbug/1722659.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>