<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="rss.xsl" media="screen"?>
<rss version="2.0">
  <channel>
    <title>拼吾爱程序人生 - SQL Server</title>
    <link>http://www.pin5i.com/showforum-60.html</link>
    <description>Latest 20 threads</description>
    <copyright>Copyright (c) 拼吾爱程序人生</copyright>
    <generator>Discuz!NT</generator>
    <pubDate>Sat, 13 Mar 2010 04:27:45 GMT</pubDate>
    <ttl>60</ttl>
    <item>
      <title>Microsoft SQL Server 2008 Reporting Services Unleashed</title>
    <description><![CDATA[Description

The authoritative, example-rich guide to Microsoft’s powerful reporting platform

With Microsoft SQL Server 2008 Reporting Services you can quickly deliver relevant business intellige]]></description>
      <link>http://www.pin5i.com/showtopic-27033.html</link>
      <author>cobra</author>
      <pubDate>Fri, 12 Mar 2010 16:37:00 GMT</pubDate>
    </item>
    <item>
      <title>在SQL Server里查询Excel文件内容</title>
    <description><![CDATA[先上SQL：exec sp_configure 'show advanced options',1
reconfigure
exec sp_configure 'Ad Hoc Distributed Queries',1
reconfigure

SELECT  *    FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0',
'Data Sour]]></description>
      <link>http://www.pin5i.com/showtopic-27004.html</link>
      <author>cobra</author>
      <pubDate>Wed, 10 Mar 2010 17:24:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server 性能优化——Compression</title>
    <description><![CDATA[执行SQL查询时，主要的几个瓶颈在于：CPU运算速度、内存缓存区大小、磁盘IO速度。而对于大数据量数据的查询，其瓶颈则一般集中于磁盘IO，以及内存缓存。那么为了提高SQL查询的效率，一方面我们需要考虑尽量减少查询设计的数据条目数——建立索引，设立分区；另一方面，我们也可以考虑切实减少数据表物理大小，从而减少IO大小。

在SQL Server 2008中，最新提供了一项功能“压缩（Compre]]></description>
      <link>http://www.pin5i.com/showtopic-26980.html</link>
      <author>cobra</author>
      <pubDate>Mon, 08 Mar 2010 20:59:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server 性能优化——Partition（管理分区）</title>
    <description><![CDATA[正如上一篇文章SQL Server 性能优化——Partition（管理分区）中所述，分区并不是一个一劳永逸的操作，对一张表做好分区仅仅是开始，接下来可能需要频繁的变更分区，管理分区。

在企业管理器中，虽然有“管理分区”的菜单，里面的内容却可能与你的预想不同，这里并没有提供直接对分区进行操作的方法，所以一些普通的操作，比如“增加分区”、“删除分区”之类的操作就需要通过脚本实现了。

增加]]></description>
      <link>http://www.pin5i.com/showtopic-26978.html</link>
      <author>cobra</author>
      <pubDate>Mon, 08 Mar 2010 20:44:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server 性能优化——Partition（创建分区）</title>
    <description><![CDATA[和压缩（Compression）相比，数据库分区（Partition）的操作更为复杂繁琐。而且与Compression一次操作，终身保持不同，分区是一项需要长期维护周期变更的操作。

分区的意义在于将大数据从物理上切割为几个相互独立的小部分，从而在查询时只取出其中一个或几个分区，减少影响的数据；另外对于置于不同文件组的分区，并行查询的性能也要高于对整个表的查询性能。

事实上，在SQL S]]></description>
      <link>http://www.pin5i.com/showtopic-26977.html</link>
      <author>cobra</author>
      <pubDate>Mon, 08 Mar 2010 20:32:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server2005中的uniqueidentifier数据类型与NEWID()函数</title>
    <description><![CDATA[uniqueidentifier中文含义“唯一的标识符”。

uniqueidentifier数据类型是16个字节的二进制值，应具有唯一性，必须与NEWID()函数配合使用。

uniqueidentifier数据类型与identity自增不同，不会为插入的新行自动生成新的ID，新值由NEWID()函数指定。

NEWID()函数值会生成全球唯一的标识，标识由网卡号和CPU时钟组成，如]]></description>
      <link>http://www.pin5i.com/showtopic-26953.html</link>
      <author>cobra</author>
      <pubDate>Sun, 07 Mar 2010 18:45:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server中批量插入数据方式的性能对比</title>
    <description><![CDATA[公司技术背景：数据库访问类（xxx.DataBase.Dll）调用存储过程实现数据库的访问。

技术方案一：

压缩时间下程序员写出的第一个版本，仅仅为了完成任务，没有从程序上做任何优化，实现方式是利用数据库访问类调用存储过程，利用循环逐条插入。很明显，这种方式效率并不高，于是有了前面的两位同事讨论效率低的问题。

技术方案二：

由于是考虑到大数据量的批量插入，于是我想到了 AD]]></description>
      <link>http://www.pin5i.com/showtopic-26910.html</link>
      <author>cobra</author>
      <pubDate>Wed, 03 Mar 2010 22:33:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server 2008 事务日志物理文件尺寸无法减小的解决办法（含日志收缩(shrink)技巧）</title>
    <description><![CDATA[前言

SQLServer2008中如何收缩日志文件，在邀月工作室的日志已经详细描述（点击查看），这里不再赘述。本文的重点是与大家分享日志截断、收缩后，物理文件的尺寸依然没有减小到期望尺寸的问题。（文/朱博）

解决方案

我的一个数据库，数据文件10+G ，事务日志达20+G，而且使用常规的截断、收缩方法均无法减小日志物理文件的尺寸，经过一番寻找，终于找到了解决方法。

查看日志]]></description>
      <link>http://www.pin5i.com/showtopic-26902.html</link>
      <author>cobra</author>
      <pubDate>Wed, 03 Mar 2010 14:18:00 GMT</pubDate>
    </item>
    <item>
      <title>如何压缩SQL Server 2008数据库的日志(log)文件</title>
    <description><![CDATA[在SQL Server 2000/2005中可以快速压缩日志log文件，通过SQL,

方法一：--BigData为数据库名
DUMP TRANSACTION BigData WITH NO_LOG
BACKUP LOG BigData WITH NO_LOG
DBCC SHRINKDATABASE(BigData )执行以上语句可以快速压缩日志文件到 1M。

　　但是以上语句中前]]></description>
      <link>http://www.pin5i.com/showtopic-26901.html</link>
      <author>cobra</author>
      <pubDate>Wed, 03 Mar 2010 14:07:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server 2005创建计划任务</title>
    <description><![CDATA[我们在开发过程中，经常遇到这样问题，就是要求定期进行数据库的检查，如果发现特定数据，那么就要进行某项操作，这个需求呢，可以利用 Windows的计划任务，定期执行某一个应用程序，去检索数据；也可以让程序自己控制。其实SQL Server自己也可以创建计划任务，定期进行执行。如果数据库服务器允许，可以考虑采用这种方式。

在SQL server2005创建计划任务具体步骤如下：

首先要确认]]></description>
      <link>http://www.pin5i.com/showtopic-26900.html</link>
      <author>cobra</author>
      <pubDate>Wed, 03 Mar 2010 13:22:00 GMT</pubDate>
    </item>
    <item>
      <title>MS SQL 技巧系列（一）至少连续三年获得优秀奖的人</title>
    <description><![CDATA[本系列将收藏或者是转载MS SQL的一些技巧，包括查询或者是数据库设计、优化等。（文/virus）

　　本文来源：求连续三年获得优秀奖的人

　　原理就是从最小的年份开始，将连续三年（使用最小年份加1和加2实现）的表进行inner join on 年份=年份+1 and 年份=年份+2 and 姓名相同，然后再最后join出来的表中就是连续三年的数据了

　　MSSQL如下Creat]]></description>
      <link>http://www.pin5i.com/showtopic-26779.html</link>
      <author>cobra</author>
      <pubDate>Mon, 22 Feb 2010 14:24:00 GMT</pubDate>
    </item>
    <item>
      <title>TFS2008SP1, 升级数据库从SQL Server 2005 SP3到SQL Server 2008 SP1</title>
    <description><![CDATA[现有配置：W2K8 SP2 X86 + TFS2008RTM + SQL Server 2005 SP3

期望配置：W2K8 SP2 X86 + TFS2008SP1 + SQL Server 2008 SP1

过去几个月里，看到很多人很多次的失败，一直不敢升级TFS服务器，因为整个Team的Sou......]]></description>
      <link>http://www.pin5i.com/showtopic-26777.html</link>
      <author>cobra</author>
      <pubDate>Mon, 22 Feb 2010 14:12:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Azure 学习初探 - “More than two parts of column name” 错误原因及其解决方案</title>
    <description><![CDATA[本文主要介绍我在将一个本地数据迁移到SQL Azure数据库时，遇到的一个错误信息“Deprecated feature 'More than two-part column name' is not supported in this version of SQL Server.” （“列名多于两个组成部分”），及其解决办法。（文/Chen@Ethos）

我在把本地数据迁移到SQL Azu]]></description>
      <link>http://www.pin5i.com/showtopic-26702.html</link>
      <author>cobra</author>
      <pubDate>Wed, 10 Feb 2010 17:29:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server Express开始对.NET 4.0提供有限支持</title>
    <description><![CDATA[最近微软发布了SQL Server 2008 Express SP1的更新，现在它可以支持 .NET 4.0 Beta 2了。此前，用户若想使用SQL Server 2008 Express需要先安装.NET 2.0 SP2或是.NET 3.5 SP1。然而，目前对.NET 4.0的支持是非常有限的。

由于SQLCLR的缘故，SQL Server 2008 Express无法更换CLR的版本]]></description>
      <link>http://www.pin5i.com/showtopic-26646.html</link>
      <author>cobra</author>
      <pubDate>Tue, 02 Feb 2010 01:12:00 GMT</pubDate>
    </item>
    <item>
      <title>Microsoft SQL Server 2008 Analysis Services Unleashed</title>
    <description><![CDATA[Description

As the foundation of the Microsoft Business Intelligence Strategy, Microsoft SQL Server 2008 Analysis Services provides users with faster access to data and even more tools for managing......]]></description>
      <link>http://www.pin5i.com/showtopic-26606.html</link>
      <author>cobra</author>
      <pubDate>Mon, 25 Jan 2010 22:10:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server树型结构数据处理的存储过程</title>
    <description><![CDATA[我们在平常的系统开发中常常会遇到像无限级分类这样的树型结构数据，现提供一个可用的数据库存储过程，可以完成树型结构数据的排序。（文/Neo.Yan）

环境：windows7+Sql Server 2008

说明：下面代码已经转换成Sql server2000的脚本，处理效果如下，看sortname字段结果,代码经过测试。

创建树型表CREATE TABLE .(
  IDENTI]]></description>
      <link>http://www.pin5i.com/showtopic-26603.html</link>
      <author>cobra</author>
      <pubDate>Mon, 25 Jan 2010 12:24:00 GMT</pubDate>
    </item>
    <item>
      <title>Microsoft SQL Server 2008 Integration Services Unleashed</title>
    <description><![CDATA[Description

Microsoft SQL Server Integration Services is Microsoft’s powerful platform for building enterprise-level data integration and data transformation solutions. It’s a powerful product, but]]></description>
      <link>http://www.pin5i.com/showtopic-26592.html</link>
      <author>cobra</author>
      <pubDate>Fri, 22 Jan 2010 21:44:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server BI Step by Step SSRS 2----SQL Server 2008 Reporting Services实现匿名访问报表</title>
    <description><![CDATA[上一篇:SQL Server BI Step by Step SSRS 1-Reporting Service 2008的新特性

SQL SERVER 2008中,Reporting Service不再依赖于IIS,这带来很多利处，不过这也意味着不能够直接通过配置IIS的虚拟目录部署来实现匿名访问了。下面我们就看一下在SSRS 2008中怎么能够实现报表的“匿名访问”，不过对于一个正式项目来]]></description>
      <link>http://www.pin5i.com/showtopic-26517.html</link>
      <author>cobra</author>
      <pubDate>Sun, 10 Jan 2010 21:40:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server BI Step by Step SSRS 1-Reporting Service 2008的新特性</title>
    <description><![CDATA[今天我们开始SQL SERVER BI的另外一个重要的部分 --Reporting Service，相对于Integration Service和Analysis Service，Reporing Service在国内的使用者应该多很多.一方面由于Reporing Service费用比较低，直接附属在SQL SERVER中，另外一方面其实SSRS在很大程度上还是满足我们的报表需求的。 在SQL S]]></description>
      <link>http://www.pin5i.com/showtopic-26516.html</link>
      <author>cobra</author>
      <pubDate>Sun, 10 Jan 2010 21:16:00 GMT</pubDate>
    </item>
    <item>
      <title>分别使用Guid和int做主键的性能比较</title>
    <description><![CDATA[在数据库的设计中我们常常用Guid或int来做主键，根据所学的知识一直感觉int做主键效率要高，但没有做仔细的测试无法。（文/落叶潇潇雨）

说明道理。碰巧今天在数据库的优化过程中，遇到此问题，于是做了一下测试。

 测试环境：

　　台式电脑 Pentiun(R) 4 Cpu 3.06GHz
　　Win XP professional
　　1.5G DDR RAM
　　SQL ]]></description>
      <link>http://www.pin5i.com/showtopic-26485.html</link>
      <author>cobra</author>
      <pubDate>Mon, 04 Jan 2010 17:57:00 GMT</pubDate>
    </item>
  </channel>
</rss>