﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><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>博客园-深蓝居-随笔分类-SQL开发</title><link>http://www.cnblogs.com/studyzy/category/88705.html</link><description>关注MS的VS2008和SQL Server 2008</description><language>zh-cn</language><lastBuildDate>Mon, 21 Jul 2008 18:27:42 GMT</lastBuildDate><pubDate>Mon, 21 Jul 2008 18:27:42 GMT</pubDate><ttl>60</ttl><item><title>使用链接服务器在异构数据库中查询数据</title><link>http://www.cnblogs.com/studyzy/archive/2008/07/21/1247824.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Mon, 21 Jul 2008 09:00:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/07/21/1247824.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1247824.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/07/21/1247824.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1247824.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1247824.html</trackback:ping><description><![CDATA[摘要: SQL Server提供了链接服务器用于分布式查询异构数据库。通过链接服务器可以链接到Oracle、Sybase、DB2、SQL Server等大型关系数据库，也可以连接到Access、Excel等文件数据库，甚至可以连接到目录服务（AD）、索引服务等。要链接到一种数据库需要使用相应的接口。微软为很多数据库提供了驱动接口，所以可以直接使用，但是对于没有提供驱动的数据库比如Sybase，则需要在服务器上安装对应数据库厂商提供的驱动。
使用SSMS或者使用T-SQL语句配置成功链接服务器后便可通过：
[服务器名].[数据库名].[架构名].[对象名]
的形式来访问数据库。&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/07/21/1247824.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1247824.html?type=1" width = "1" height = "1" />]]></description></item><item><title>如何修改数据库的服务器名称</title><link>http://www.cnblogs.com/studyzy/archive/2008/07/05/1236090.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Fri, 04 Jul 2008 19:29:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/07/05/1236090.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1236090.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/07/05/1236090.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1236090.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1236090.html</trackback:ping><description><![CDATA[摘要: 最近我要在SQLServer2008上做数据库复制的实验，需要用到两台服务器，所以我需要同时开2个虚拟机（VPC），当然我不可能去单独安装2个SQLServer，安装过程太费时了，所以我是在一个...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/07/05/1236090.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1236090.html?type=1" width = "1" height = "1" />]]></description></item><item><title>使用T-SQL配置日志传送</title><link>http://www.cnblogs.com/studyzy/archive/2008/06/23/1227855.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Sun, 22 Jun 2008 19:56:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/06/23/1227855.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1227855.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/06/23/1227855.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1227855.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1227855.html</trackback:ping><description><![CDATA[摘要: 日志传送（log shipping）主要基于SQL Server代理，使用定时作业来完成，另外在配置日志传送之前必须要创建共享文件夹，用于辅助服务器访问。这里我们假设有数据库logTrans1需要进行日志传送，共享文件夹为“C:\data”，在T-SQL中配置日志传送主要有以下几步操作： &nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/06/23/1227855.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1227855.html?type=1" width = "1" height = "1" />]]></description></item><item><title>关于ADO.NET连接池</title><link>http://www.cnblogs.com/studyzy/archive/2008/05/16/1199611.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Thu, 15 May 2008 18:10:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/05/16/1199611.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1199611.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/05/16/1199611.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1199611.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1199611.html</trackback:ping><description><![CDATA[摘要: 前几天同事问我一个问题，一种CS架构的程序，直接把SQL Server作为服务端，每个客户端直接连接数据库操作，如果客户端打开的数量过多时SQL Server的连接数将会特别高，数据库端形成性能瓶颈，这种情况下怎么办？想了想，造成这种情况的原因是ADO.NET的内部机制造成的。ADO.NET中为了提高性能，所以使用了连接池，这样每个请求就不必都创建一个连接，然后认证，然后执行SQL，而是从连接池中直接取出连接执行SQL，执行完成后也并不是真正关闭连接，而是将该连接重新放回连接池中。如果有100个客户端，每个客户端在使用一段时间后连接池中保存了10个连接，那么在这种情况下，即使不在客户端做任何操作，SQL Server上都有1000个连接，这样不出性能问题才怪。 <br>既然是连接池的问题，那么我就针对该问题想到了2个解决办法： <br>&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/05/16/1199611.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1199611.html?type=1" width = "1" height = "1" />]]></description></item><item><title>使用SQLServer2005的链接服务器链接Sybase数据库</title><link>http://www.cnblogs.com/studyzy/archive/2008/04/22/1164817.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Mon, 21 Apr 2008 17:52:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/04/22/1164817.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1164817.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/04/22/1164817.html#Feedback</comments><slash:comments>5</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1164817.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1164817.html</trackback:ping><description><![CDATA[摘要: 在以前的一篇文章中我讲到了Sybase ASE数据库的安装，接下来本篇就讲一下Sybase数据库与SQLServer2005数据库的同步，准确的说是使用SQLServer2005读取和写入Sybase数据库表。<br>为什么要这样做拉？因为在项目中有时需要做其他系统的数据接口，而接口中的数据是存放在Sybase数据库中，这个时候就可以使用SQLServer2005中的链接服务器来连接Sybase数据库，在前面我也写过一篇文章讲SQLServer2005与Oracle数据库的同步，大同小异，大家可以参考。闲话休说，言归正传，下面讲一下配置步骤：<br>&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/04/22/1164817.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1164817.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL2008空间数据类型--欧氏几何2类与方法</title><link>http://www.cnblogs.com/studyzy/archive/2008/03/20/1114021.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Wed, 19 Mar 2008 19:17:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/03/20/1114021.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1114021.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/03/20/1114021.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1114021.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1114021.html</trackback:ping><description><![CDATA[摘要: 2&nbsp;类与方法在上一篇博客中说道了几何数据类型（点、线、面和集合）的定义，既然几何数据类型是通过CLR来扩展出来的，学习过C#的都知道，一个对象下面会有属性和方法，那么几何数据类型对应的也...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/03/20/1114021.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1114021.html?type=1" width = "1" height = "1" />]]></description></item><item><title>[转]SQL 2005中pivot and unpivot的用法</title><link>http://www.cnblogs.com/studyzy/archive/2008/03/18/1110679.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Mon, 17 Mar 2008 16:40:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/03/18/1110679.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1110679.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/03/18/1110679.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1110679.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1110679.html</trackback:ping><description><![CDATA[摘要: &nbsp;.Pivot的用法体会:语句范例:selectPN,[2006/5/30]as[20060530],[2006/6/2]as[20060602]fromcon...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/03/18/1110679.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1110679.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL2008空间数据类型--欧氏几何1基础</title><link>http://www.cnblogs.com/studyzy/archive/2008/03/17/1108947.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Sun, 16 Mar 2008 18:34:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/03/17/1108947.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1108947.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/03/17/1108947.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1108947.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1108947.html</trackback:ping><description><![CDATA[摘要: 在SQL2008中增加了对地理空间数据类型的支持，该类型分为2种：欧式（平面）几何geometry 和地理空间（椭圆体）几何geography 。欧式几何大家基本上都学过，是以坐标来表示，而地理空间就是使用经度和纬度来表示，由于平面几何比较简单（我记得好像是初中时候学的，高中学立体几何），所以我就从简单的学起，先学习geometry 数据类型。&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/03/17/1108947.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1108947.html?type=1" width = "1" height = "1" />]]></description></item><item><title>安装使用Sybase ASE 12.5</title><link>http://www.cnblogs.com/studyzy/archive/2008/01/31/1059992.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Thu, 31 Jan 2008 07:17:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/01/31/1059992.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1059992.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/01/31/1059992.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1059992.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1059992.html</trackback:ping><description><![CDATA[摘要: 首先下载SybaseASE12.5的安装文件，下载地址为http://download.sybase.com/eval/ASE_1252_DE/ase1252_de_win.zip另外还有Syb...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/01/31/1059992.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1059992.html?type=1" width = "1" height = "1" />]]></description></item><item><title>Oracle数据类型（转）</title><link>http://www.cnblogs.com/studyzy/archive/2008/01/03/1023877.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Wed, 02 Jan 2008 17:46:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2008/01/03/1023877.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1023877.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2008/01/03/1023877.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1023877.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1023877.html</trackback:ping><description><![CDATA[摘要: &nbsp;Character数据类型Character数据类型用来存储字母数字型数据。当你在oracle中定义一个character数据时，通常需要制定字段的长度，它是该字段的最...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2008/01/03/1023877.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1023877.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL Server 2005与Oracle同步注意NUMBER类型转换</title><link>http://www.cnblogs.com/studyzy/archive/2007/12/26/1016044.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Wed, 26 Dec 2007 13:43:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2007/12/26/1016044.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/1016044.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2007/12/26/1016044.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/1016044.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/1016044.html</trackback:ping><description><![CDATA[摘要: 在前面的文章中我已经讲到使用同义词的方法来在SQLServer2005下连接Oracle，我们可以使用同义词来实时访问Oracle数据库，但是如果Oracle中的表数据流较大则会影响应用系统的性能...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2007/12/26/1016044.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/1016044.html?type=1" width = "1" height = "1" />]]></description></item><item><title>使用OPENXML函数将XML文档转换为行结果集</title><link>http://www.cnblogs.com/studyzy/archive/2007/12/10/988806.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Sun, 09 Dec 2007 18:45:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2007/12/10/988806.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/988806.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2007/12/10/988806.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/988806.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/988806.html</trackback:ping><description><![CDATA[摘要: FOR XML子句都是将行结果集转换为XML结果集，那么如果想要将XML文档转换成行结果集，这时就要使用OPENXML函数。OPENXML在SQL Server 2000中就已经提供，但是在SQL Server 2005对该函数进行了增强。&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2007/12/10/988806.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/988806.html?type=1" width = "1" height = "1" />]]></description></item><item><title>如何将SQLServer2005中的数据同步到Oracle中</title><link>http://www.cnblogs.com/studyzy/archive/2007/10/05/914719.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Fri, 05 Oct 2007 07:07:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2007/10/05/914719.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/914719.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2007/10/05/914719.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/914719.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/914719.html</trackback:ping><description><![CDATA[摘要: 有时由于项目开发的需要，必须将SQLServer2005中的某些表同步到Oracle数据库中，由其他其他系统来读取这些数据。不同数据库类型之间的数据同步我们可以使用链接服务器和SQLAgent来实现。假设我们这边（SQLServer2005）有一个合同管理系统，其中有表contract 和contract_project是需要同步到一个MIS系统中的（Oracle9i）那么，我们可以按照以下几步实现数据库的同步。&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2007/10/05/914719.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/914719.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL server服务器大内存配置（转）</title><link>http://www.cnblogs.com/studyzy/archive/2007/09/29/910878.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Sat, 29 Sep 2007 08:11:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2007/09/29/910878.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/910878.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2007/09/29/910878.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/910878.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/910878.html</trackback:ping><description><![CDATA[摘要: 以前的服务器,由于内存的价格过高,一般配的内存不是很多,超过4G的当然就不多了.现在的服务器,配置超过4G就很多,在配作SQL数据库服务器后,很多的人只选默认的设置,虽然可以正常使用,可是却把大量的内存给浪费(SQL服务使用的内存不会超过1.8G),系统的性能也不能因为的大内存而提升,这是很可惜的. <br>　　在本文中,我大致讲一下配置的过程.(如果服务器的内存少于4G,不用配置)(网上完全讲这个的,没有见过,随手写一个) &nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2007/09/29/910878.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/910878.html?type=1" width = "1" height = "1" />]]></description></item><item><title>同样功能的SQL语句,写成参数和写成常量怎么效率会有那么大的差别</title><link>http://www.cnblogs.com/studyzy/archive/2007/08/31/877523.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Fri, 31 Aug 2007 09:34:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2007/08/31/877523.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/877523.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2007/08/31/877523.html#Feedback</comments><slash:comments>8</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/877523.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/877523.html</trackback:ping><description><![CDATA[摘要: 今天写一个存储过程,由于执行的时间比较长(7秒)所以打算优化一下.结果在优化测试代码中发现如下一个奇怪的现象.现在有一个表mis_gl_balance,其中有一个字段ACC_SEGMENTVAR...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2007/08/31/877523.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/877523.html?type=1" width = "1" height = "1" />]]></description></item><item><title>用SQL语句获得一个存储过程返回的表</title><link>http://www.cnblogs.com/studyzy/archive/2007/07/26/831924.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Thu, 26 Jul 2007 02:50:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2007/07/26/831924.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/831924.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2007/07/26/831924.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/831924.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/831924.html</trackback:ping><description><![CDATA[摘要: 定义一个存储过程如下:<br><div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.cnblogs.com/Images/OutliningIndicators/None.gif" align="top"  alt="" /><span style="color: #0000ff">create</span><span style="color: #000000">&nbsp;</span><span sty&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2007/07/26/831924.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/831924.html?type=1" width = "1" height = "1" />]]></description></item><item><title>如何防止插入删除表造成的数据库死锁</title><link>http://www.cnblogs.com/studyzy/archive/2007/06/11/779811.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Mon, 11 Jun 2007 15:19:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2007/06/11/779811.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/779811.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2007/06/11/779811.html#Feedback</comments><slash:comments>26</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/779811.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/779811.html</trackback:ping><description><![CDATA[摘要: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在数据库中经常会遇到这样的情况：一个主表A，一个子表B，B表中包含有A表的主键作为外键。当要...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2007/06/11/779811.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/779811.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL2005实现循环每一行做一定操作。</title><link>http://www.cnblogs.com/studyzy/archive/2007/04/09/705882.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Mon, 09 Apr 2007 08:50:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2007/04/09/705882.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/705882.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2007/04/09/705882.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/705882.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/705882.html</trackback:ping><description><![CDATA[摘要: 要对一个表的每一行做出比较复杂的操作，一般会想到用游标，今天想到使用SQL2005中的新函数ROW_NUMBER()和while循环来对每一行执行操作。示例代码如下：select&nbsp;Dep...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2007/04/09/705882.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/705882.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL Server 2005 同义词Bug</title><link>http://www.cnblogs.com/studyzy/archive/2006/12/26/690304.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Tue, 26 Dec 2006 15:40:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/12/26/690304.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690304.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/12/26/690304.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690304.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690304.html</trackback:ping><description><![CDATA[摘要: &nbsp;今天发现了SQL2005的一个Bug，在建立同义词链接Oracle的时候，使用下面的语句:&nbsp;&nbsp;CREATE&nbsp;SYNONYM&nbsp;[dbo...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/12/26/690304.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690304.html?type=1" width = "1" height = "1" />]]></description></item><item><title>用SQL Server2005同义词链接Oracle的完整过程</title><link>http://www.cnblogs.com/studyzy/archive/2006/12/19/690305.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Tue, 19 Dec 2006 14:47:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/12/19/690305.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690305.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/12/19/690305.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690305.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690305.html</trackback:ping><description><![CDATA[摘要: &nbsp;用SQLServer2005同义词链接Oracle数据库可以将Oracle中的表，视图等映射到SQL2005中，直接在SQL2005中操作Oracle的数据，非常简单方便。下面具...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/12/19/690305.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690305.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SqlServer下数据库链接的使用方法</title><link>http://www.cnblogs.com/studyzy/archive/2006/12/08/690307.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Fri, 08 Dec 2006 15:02:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/12/08/690307.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690307.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/12/08/690307.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690307.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690307.html</trackback:ping><description><![CDATA[摘要: &nbsp;有时候我们希望在一个sqlserver下访问另一个sqlserver数据库上的数据，或者访问其他oracle数据库上的数据，要想完成这些操作，我们首要的是创建数据库链接。　　数据库链接...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/12/08/690307.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690307.html?type=1" width = "1" height = "1" />]]></description></item><item><title>Oracle建立（基础）</title><link>http://www.cnblogs.com/studyzy/archive/2006/12/08/690324.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Fri, 08 Dec 2006 11:27:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/12/08/690324.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690324.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/12/08/690324.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690324.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690324.html</trackback:ping><description><![CDATA[摘要: 本人从来没有接触过Oracle，今天听师兄讲解演示了一下，颇有收获，所以著文以记之。废话少说，现介绍一下情况：环境：VPC2007中安装了Windows2003&nbsp;+Oracle9i做服务...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/12/08/690324.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690324.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL Server2005中的SMO编程</title><link>http://www.cnblogs.com/studyzy/archive/2006/10/27/690308.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Thu, 26 Oct 2006 18:33:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/10/27/690308.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690308.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/10/27/690308.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690308.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690308.html</trackback:ping><description><![CDATA[摘要: SMO是SQL Mangagement Objects的简称.与之相对应的是ADO.Net,不过不同的地方是ADO.Net是用于数据访问的,而SMO是用于设计的,虽然SMO能够再服务器上执行任意的SQL语句.另外一个不同的地方是ADO.Net可以访问计算机中任意数据源,而SMO对象是专门针对SQL Server而设计的.<br>在SMO中最重要的一个类就是Server.其他大多数对象都是Server对象的后代.比如Database,Table,View等等对象都是通过Server属性不断向下检索到的.<br>要在VS2005中使用必须引用SMO的程序集.我们建立好一个控制台应用程序,添加引用:Microsoft.SqlServer.ConnectionInfo和Microsoft.SqlServer.Smo.&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/10/27/690308.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690308.html?type=1" width = "1" height = "1" />]]></description></item><item><title>在SQL Server2005中使用 .NET程序集</title><link>http://www.cnblogs.com/studyzy/archive/2006/10/26/690309.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Wed, 25 Oct 2006 19:42:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/10/26/690309.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690309.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/10/26/690309.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690309.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690309.html</trackback:ping><description><![CDATA[摘要: &nbsp;昨天完成了一个最简单的在数据库中创建标量值函数,今天主要完成表值函数,存储过程和用户定义类型在和.NET结合下的使用方法.1,表值函数所谓表值函数就是说这个函数返回的结果是一个Table,...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/10/26/690309.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690309.html?type=1" width = "1" height = "1" />]]></description></item><item><title>数据库设计范式(转)</title><link>http://www.cnblogs.com/studyzy/archive/2006/10/25/690310.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Tue, 24 Oct 2006 17:11:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/10/25/690310.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690310.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/10/25/690310.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690310.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690310.html</trackback:ping><description><![CDATA[摘要: &nbsp;关系数据库设计之时是要遵守一定的规则的。尤其是数据库设计范式现简单介绍1NF（第一范式），2NF（第二范式），3NF（第三范式）和BCNF，另有第四范式和第五范式留到以后再介绍。在你设...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/10/25/690310.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690310.html?type=1" width = "1" height = "1" />]]></description></item><item><title> 数据库快照,自定义函数与计算列</title><link>http://www.cnblogs.com/studyzy/archive/2006/10/24/690311.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Mon, 23 Oct 2006 18:42:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/10/24/690311.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690311.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/10/24/690311.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690311.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690311.html</trackback:ping><description><![CDATA[摘要:  数据库快照,自定义函数与计算列<br>1.数据库快照<br>数据库快照就是保存某个数据库在快照那一瞬间的状态.快照和备份原理上有所不同,但是功能有一点相同那就是可以将数据还原为备份的那个时刻.快照的原理是新建一个数据库指针,在原数据库没有变化的情况下快照是不占用空间的,而数据库发生了变化,那么在变化前,被修改的数据页会先复制一份到快照文件中,然后再对原数据页进行修改.显然这样做的好处就是比备份数据库占用空间小.快照是只读的,你可以直接在SQL语句中把他当数据库用:&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/10/24/690311.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690311.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL Server2005 新数据类型XML</title><link>http://www.cnblogs.com/studyzy/archive/2006/10/14/690312.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Fri, 13 Oct 2006 18:27:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/10/14/690312.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690312.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/10/14/690312.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690312.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690312.html</trackback:ping><description><![CDATA[摘要:  在SQL Server2005中继续延续了微软在.Net中的设计思想 将XML和.Net紧密地结合到其中.用.Net在Sql2005中写存储过程定义函数我还没有研究过,今天就只简单得谈谈XML在SQL2005中的应用.<br>相对SQLServer2000而言,2005在数据类型上最大的一点改变就是增加了XML这个数据类型.要把这个东西搞懂先就必须要懂XML.<br>&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/10/14/690312.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690312.html?type=1" width = "1" height = "1" />]]></description></item><item><title>使用数据库引擎优化Tuning Advistor和dta</title><link>http://www.cnblogs.com/studyzy/archive/2006/10/13/690313.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Thu, 12 Oct 2006 19:04:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/10/13/690313.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690313.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/10/13/690313.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690313.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690313.html</trackback:ping><description><![CDATA[摘要: SQL Server 2005一个我非常欣赏的特性就是有了专门优化程序,据说在2K下面也有,不过我没有用过,估计也不会怎么样. 不说2K还是说说2005的这个好东东.<br><br>在Sql Server Management Studio中点击"工具"的"数据库引擎优化顾问"可以启动这个程序,当然也可以通过开始菜单中的SQL2005下面的"性能工具"下来打开程序.<br><br>打开该程序后输入正确的用户名密码就可以登录数据库.这里的优化是针对具体SQL语句的优化,所以要准备一个要优化的查询语句比如:<br><br>USE AdventureWorks ;<br>SELECT *<br>FROM Production.Product<br><br>把以上语句保存为一个文件,在Tuning Advistor中输入会话名称:TestIt,然后选择"工作负荷"中的"文件",并指定刚才保存的这个文件,当然下面就是要选针对的数据库了,我们用的是测试数据库AdventureWorks ,下面还有"要优化的数据库和表"好像官方说这下面和上面只要选了一个就可以了,不过似乎不行,我&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/10/13/690313.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690313.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL Server连接中三个常见的错误分析(转)</title><link>http://www.cnblogs.com/studyzy/archive/2006/10/12/690314.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Thu, 12 Oct 2006 11:44:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/10/12/690314.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690314.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/10/12/690314.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690314.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690314.html</trackback:ping><description><![CDATA[摘要: &nbsp;一."SQLServer不存在或访问被拒绝"　　这个是最复杂的,错误发生的原因比较多,需要检查的方面也比较多.　　一般说来,有以下几种可能性:　　1.SQL...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/10/12/690314.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690314.html?type=1" width = "1" height = "1" />]]></description></item><item><title>SQL Server2005的连接和配置（入门）</title><link>http://www.cnblogs.com/studyzy/archive/2006/10/12/690315.html</link><dc:creator>深蓝</dc:creator><author>深蓝</author><pubDate>Thu, 12 Oct 2006 11:03:00 GMT</pubDate><guid>http://www.cnblogs.com/studyzy/archive/2006/10/12/690315.html</guid><wfw:comment>http://www.cnblogs.com/studyzy/comments/690315.html</wfw:comment><comments>http://www.cnblogs.com/studyzy/archive/2006/10/12/690315.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/studyzy/comments/commentRss/690315.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/studyzy/services/trackbacks/690315.html</trackback:ping><description><![CDATA[摘要: &nbsp;如果服务器和客户端是同一台机器，那么可以使用ShareMemory进行连接，这种方式不需要通过网络，所以速度应该是最快的。使用方法就是在SQLServerMangageStudio中...&nbsp;&nbsp;<a href='http://www.cnblogs.com/studyzy/archive/2006/10/12/690315.html'>阅读全文</a><img src ="http://www.cnblogs.com/studyzy/aggbug/690315.html?type=1" width = "1" height = "1" />]]></description></item></channel></rss>