<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="rss.xsl" media="screen"?>
<rss version="2.0">
  <channel>
    <title>我的亿家 - SQL数据库</title>
    <link>http://www.22vs.com/showforum-7.aspx</link>
    <description>Latest 20 threads</description>
    <copyright>Copyright (c) 我的亿家</copyright>
    <generator>Discuz!NT</generator>
    <pubDate>Sun, 01 Aug 2010 00:15:43 GMT</pubDate>
    <ttl>60</ttl>
    <item>
      <title>存储过程使用技巧</title>
      <description><![CDATA[================以下是存储过程================
/*
加入一条基本信息
库存商品
-1 inttostr 失败
-2 有相关数据存在 
-3 parid 不存在
-4 记录已存在
*/
CREATE PROCEDURE F_B_InsertP
(@Parid varchar(25),
@dbname varchar(30),
@FullNam]]></description>
      <link>http://www.22vs.com/showtopic-764.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:58:00 GMT</pubDate>
    </item>
    <item>
      <title>用sql比较两个数据库是否一致</title>
      <description><![CDATA[比较两个数据库，可以用工具，比如toad等，也可以自己写存储过程来实现，我介绍一个用sql来核对表结构是否一致，以此类推，大家可以写出对比索引是否一致，对比约束是否一致的sql，该sql的缺点就是只能查出差异，却不知是那个表引起的： 

代码:select case when a.cnt = b.cnt then '两个库结构一致' 
when a.cnt &amp;lt;&amp;gt; b.cnt th]]></description>
      <link>http://www.22vs.com/showtopic-763.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:56:00 GMT</pubDate>
    </item>
    <item>
      <title>50种方法巧妙优化你的SQL Server数据库</title>
      <description><![CDATA[查询速度慢的原因很多，常见如下几种：
　　
　　1、没有索引或者没有用到索引(这是查询慢最常见的问题，是程序设计的缺陷)
　　
　　2、I/O吞吐量小，形成了瓶颈效应。
　　
　　3、没有创建计算列导致查询不优化。
　　
　　4、内存不足
　　
　　5、网络速度慢
　　
　　6、查询出的数据量过大（可以采用多次查询，其他的方法降低数据量）
　　
　　7、锁或者死锁(这也]]></description>
      <link>http://www.22vs.com/showtopic-762.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:55:00 GMT</pubDate>
    </item>
    <item>
      <title>数据库开发个人总结(ADO.NET小结)</title>
      <description><![CDATA[一．用SqlConnection连接SQL Server
1..加入命名空间
using System.Data.SqlClient;
2.连接数据库
SqlConnection myConnection = new SqlConnection();
myConnection.C;
myConnection.Open();

改进（更通用）的方法：
string MySqlC;]]></description>
      <link>http://www.22vs.com/showtopic-761.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:53:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server 存储过程的分页方案比拼</title>
      <description><![CDATA[建立表：
CREATE TABLE  (
  IDENTITY (1, 1) NOT NULL ,
  (100) COLLATE Chinese_PRC_CI_AS NULL ,
  (100) COLLATE Chinese_PRC_CI_AS NULL ,
  (50) COLLATE Chinese_PRC_CI_AS NULL ,
  (2000) COLLATE Chine]]></description>
      <link>http://www.22vs.com/showtopic-760.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:51:00 GMT</pubDate>
    </item>
    <item>
      <title>关于SQLSERVER中字段为自动编号类型的重置</title>
      <description><![CDATA[Boost SQL Performance with cursor_sharing

关键词：cursor_sharing

概述
本文阐述在Oracle8i Release 2和Oracle9i中增强的游标共享设施。这些增强功能被一个新的参数cursor_sharing控制。
cursor_sharing的目的就是提高没有使用绑定变量(bind vvariable)的应用程序服务器的]]></description>
      <link>http://www.22vs.com/showtopic-759.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:49:00 GMT</pubDate>
    </item>
    <item>
      <title>sql server中重置自动编号</title>
      <description><![CDATA[关于SQLSERVER中字段为自动编号类型的重置
在SQLSERVER中的语句如下：
1. truncate table tablename
2. DBCC CHECKIDENT (tablename,reseed,1)]]></description>
      <link>http://www.22vs.com/showtopic-758.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:48:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server如何访问sybase数据库的表</title>
      <description><![CDATA[一 安装sybase客户端
　　版本:Sybase Client 11.9.2 for NT
　　1)安装完成后,运行开始-&amp;gt;程序-&amp;gt;sybase-&amp;gt;Dsedit
　　2)选择菜单的'Server Object',-&amp;gt; 'Add' 输入服务名 比如 1.70
　　3)然后在Server列表中选择'1.70',双击右边的对话框server address栏,在Netw]]></description>
      <link>http://www.22vs.com/showtopic-757.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:47:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL扩展存储过程安装与卸载</title>
      <description><![CDATA[假设已经做好扩展存储过程的DLL文件为dbxp_skate.dll
--首先要将dll文件(dbxp_skate.dll)拷贝到sql程序所在的binn目录，例如C:\Program Files\Microsoft SQL Server\MSSQL\Binn
--安装扩展存储过程
exec master..sp_addextendedproc 'xp_dbevent', 'dbxp_skat]]></description>
      <link>http://www.22vs.com/showtopic-756.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:46:00 GMT</pubDate>
    </item>
    <item>
      <title>将Excel中的数据导入到SQLServer2000</title>
      <description><![CDATA[1、打开企业管理器，打开要导入数据的数据库，在表上按右键，所有任务--&amp;gt;导入数据，弹出DTS导入/导出向导，按 下一步 ，
2、选择数据源 Microsoft Excel 97-2000，文件名 选择要导入的xls文件，按 下一步 ，
3、选择目的 用于SQL Server 的Microsoft OLE DB提供程序，服务器选择本地(如果是本地数据库的话，如 VVV)，使用SQL Ser]]></description>
      <link>http://www.22vs.com/showtopic-755.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:45:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server 2005 中能够使用 Try...Catch语句</title>
      <description><![CDATA[这个和我们的C#程序处理流程是一样的,有时候我们可能需要这样的操作:
就是我用SQL语句添加一条记录 ,若成功,则返回0,否则返回-1等数值
我们可以在存储过程中这样写:
BEGIN TRY
--SQL语句
return 0
SEND TRY
BEGIN CATCH
    return -1
END CATCH;]]></description>
      <link>http://www.22vs.com/showtopic-754.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:44:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server 2000中的触发器使用</title>
      <description><![CDATA[触发器是数据库应用中的重用工具，它的应用很广泛。这几天写一个化学数据统计方面的软件，需要根据采样，自动计算方差，在这里，我使用了触发器。

　　下面我摘录了SQL Server官方教程中的一段关于触发器的文字，确实有用的一点文字描述。 

　　可以定义一个无论何时用INSERT语句向表中插入数据时都会执行的触发器。

　　当触发INSERT触发器时，新的数据行就会被插入到触发器表和in]]></description>
      <link>http://www.22vs.com/showtopic-753.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 05 Jan 2009 10:43:00 GMT</pubDate>
    </item>
    <item>
      <title>海量数据库的查询优化及分页算法方案</title>
      <description><![CDATA[在以下的文章中，我将以“办公自动化”系统为例，探讨如何在有着1000万条数据的MS SQL SERVER数据库中实现快速的数据提取和数据分页。以下代码说明了我们实例中数据库的“红头文件”一表的部分数据结构：

CREATE TABLE . (    --TGongwen是红头文件表名

     IDENTITY (1, 1) NOT NULL ,
--本表的id号，也是主键

  ]]></description>
      <link>http://www.22vs.com/showtopic-726.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Sun, 05 Oct 2008 10:59:00 GMT</pubDate>
    </item>
    <item>
      <title>关于多极分类的几个存储过程</title>
      <description><![CDATA[--获得某一分类下的所有子分类 
1CREATE PROCEDURE sp_Market_News_Type_GetChildType
2    @pTypeID int
3AS
4    DECLARE @RecCount int
5    DECLARE @AllTable table( OID int )
6    DECLARE @ChildTable table( OID i]]></description>
      <link>http://www.22vs.com/showtopic-725.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Sun, 05 Oct 2008 10:55:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL SERVER的数据类型</title>
      <description><![CDATA[1.SQL SERVER的数据类型 
　　数据类弄是数据的一种属性，表示数据所表示信息的类型。任何一种计算机语言都定义了自己的数据类型。当然，不同的程序语言都具有不同的特点，所定义的数据类型的各类和名称都或多或少有些不同。SQLServer 提供了 25 种数据类型：
Binary Varbinary Char VarcharNcharNvarcharDatetimeSmalldatetime]]></description>
      <link>http://www.22vs.com/showtopic-479.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Sat, 12 Jul 2008 22:27:00 GMT</pubDate>
    </item>
    <item>
      <title>Windows Server 2003 为 SQL Server 2000 提供的支持</title>
      <description><![CDATA[症状Microsoft Windows Server 2003 产品系列不支持 SQL Server 2000 Service Pack 2 (SP2) 及更低版本。当您在运行 Windows Server 2003 的计算机上安装 SQL Server 2000 时，会收到以下警告消息：SQL Server 2000 SP2 and below
SQL Server 2000 SP2 and ]]></description>
      <link>http://www.22vs.com/showtopic-478.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Sat, 12 Jul 2008 22:27:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL SERVER 与ACCESS、EXCEL的数据转换</title>
      <description><![CDATA[熟悉SQL SERVER 2000的数据库管理员都知道，其DTS可以进行数据的导入导出，其实，我们也可以使用Transact-SQL语句进行导入导出操作。在Transact-SQL语句中，我们主要使用OpenDataSource函数、OPENROWSET 函数，关于函数的详细说明，请参考SQL联机帮助。利用下述方法，可以十分容易地实现SQL SERVER、ACCESS、EXCEL数据转换，详细说明]]></description>
      <link>http://www.22vs.com/showtopic-477.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Sat, 12 Jul 2008 22:26:00 GMT</pubDate>
    </item>
    <item>
      <title>精妙的SQL语句</title>
      <description><![CDATA[说明：复制表(只复制结构,源表名：a 新表名：b) 
select * into b from a where 1&amp;lt;&amp;gt;1

说明：拷贝表(拷贝数据,源表名：a 目标表名：b)
insert into b(a, b, c) select d,e,f from b;

说明：显示文章、提交人和最后回复时间
select a.title,a.username,b.adddate]]></description>
      <link>http://www.22vs.com/showtopic-476.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Sat, 12 Jul 2008 22:26:00 GMT</pubDate>
    </item>
    <item>
      <title>SQL Server 数据库管理常用的SQL和T-SQL语句</title>
      <description><![CDATA[1. 查看数据库的版本 
select @@version 

2. 查看数据库所在机器操作系统参数 
exec master..xp_msver 

3. 查看数据库启动的参数 
sp_configure 

4. 查看数据库启动时间 
select convert(varchar(30),login_time,120) from master..sysprocesses w]]></description>
      <link>http://www.22vs.com/showtopic-475.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Sat, 12 Jul 2008 22:25:00 GMT</pubDate>
    </item>
    <item>
      <title>《SQL 参考手册》中文版</title>
      <description><![CDATA[4《SQL 参考手册》中文版]]></description>
      <link>http://www.22vs.com/showtopic-325.aspx</link>
      <category>SQL数据库</category>
      <author>mynet</author>
      <pubDate>Mon, 30 Jun 2008 14:37:00 GMT</pubDate>
    </item>
  </channel>
</rss>