﻿<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="/Images/rss.xslt"?><rss version="2.0"><channel><title>柳永法－数据库+SQL</title><description>柳永法(yongfa365)'Blog RSS</description><link>http://www.yongfa365.com/SQL/</link><copyright>(C) 2007 http://www.yongfa365.com</copyright><item>
  <title>nvarchar(n)及nvarchar(max)中的n及max是否会影响性能 实例分析</title>
  <description><![CDATA[    前些天写一文章：varchar(n),nvarchar(n) 长度、性能、及所占空间分析，其中说到n不会影响到数据库空间大小及性能，甚至n是max也可能影响不到，占用空间好说，有官方文档，自己测一下也能看出，但是否影响性能，只道听途说，拿不出论据来，今天我来拿个例子证明一下以上说法，如有不妥之处，敬请拍砖]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-varchar-nvarchar-max-performance.html</link>
  <pubDate>Sun, 06 Nov 2011 14:22:54 GMT</pubDate>
</item>
<item>
  <title>varchar(n),nvarchar(n) 长度、性能、及所占空间分析</title>
  <description><![CDATA[varchar(n),nvarchar(n) 中的n怎么解释：<br />　　nvarchar(n)最多能存n个字符，不区分中英文。<br />　　varchar(n)最多能存n个字节，一个中文是两个字节。<br /><br />所占空间：<br />　　nvarchar(n)一个字符会占两个字节空间。<br />　　varchar(n)中文占两字节空间，英文占一个。<br /><br />n的取值范围：<br />　　nvarchar(n)   n的范围是：1与4000之间<br />　　varchar(n)   n的范围是：1与8000之间<br /><br />]]></description>
  <link>http://www.yongfa365.com/Item/SQLServer-varchar-nvarchar.html</link>
  <pubDate>Mon, 15 Nov 2010 22:39:03 GMT</pubDate>
</item>
<item>
  <title>关于SQL Server数据库字段类型及长度设置的思考</title>
  <description><![CDATA[char比varchar速度要快很多，所以能用固定长度的就不要用变长字段，比如身份证号就可以使用CHAR(18)，而不应该使用VARCHAR(18)。<br />Nvarchar占的空间要比varchar大，所以确定是英文时，就不要使用Nvarchar。<br />主键如果能用tinyint就不要用int，能用int就不要用GUID，节省空间速度快。]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-Field-DataType-Length.html</link>
  <pubDate>Sat, 30 Oct 2010 12:16:44 GMT</pubDate>
</item>
<item>
  <title>SQL Server数据库调优 思维导图</title>
  <description><![CDATA[1 SQL Server数据库调优<br />　1.1 硬件实现<br />　　1.1.1 内存<br />　　1.1.2 CPU<br />　　1.1.3 64位系统<br />　　1.1.4 高速I/O硬盘<br />　　1.1.5 增加带宽<br />　　1.1.6 分布式数据库<br />　1.2 软实现<br />　　1.2.1 数据库引擎优化顾问<br />　　1.2.2 重建索引，降低索引碎片<br />　　1.2.3 优化SQL语句<br />　　　1.2.3.1 仅返回需要的行<br />　　　1.2..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-Shu-Ju-Ku-Diao-You.html</link>
  <pubDate>Sat, 07 Aug 2010 17:24:08 GMT</pubDate>
</item>
<item>
  <title>SQLite介绍、学习笔记、性能测试</title>
  <description><![CDATA[轻量级<br />绿色组件<br />单一文件<br />跨平台<br />查询效率极高<br />使用事务插入速度极快<br />支持limit分页<br />适合查询速度要求较高，内存占用较少的场合，尤其是嵌入式操作系统，如各种手机操作系统，低并发web(99.9%网站是低并发)，php环境里原生支持SQLite，asp.net/.net winform里可以很方便的使用System.Data.SQLite]]></description>
  <link>http://www.yongfa365.com/Item/SQLite.html</link>
  <pubDate>Sun, 30 May 2010 14:12:38 GMT</pubDate>
</item>
<item>
  <title>SQL Server 生成版权信息及测试环境信息</title>
  <description><![CDATA[PRINT REPLICATE('-',82)<br />PRINT '-- Subject     : XXXXXXXXXXXXXXXX'<br />PRINT '-- Author      : 柳永法(yongfa365) http://www.yongfa365.com/ cto@yongfa365.com'<br />PRINT '-- CreateDate  : '+CONVERT(VARCHAR,GETDATE(),20)<br />PRINT '-- Environment : '+ REPLACE(SUBSTRING(@@VERSION,0,LEN(@@VERSION)),CHAR(9),'--               ')<br />PRINT '-- Reference   : XXXXXXXXXXXXXXXX'<br />PRINT REPLICATE('-',82)<br />]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-CopyRight-Environment.html</link>
  <pubDate>Mon, 03 May 2010 11:29:50 GMT</pubDate>
</item>
<item>
  <title>SQL Server CET 通用表表达式 之 精典递归实战</title>
  <description><![CDATA[----------------------------------------------------------------------------------<br />-- Subject     : CET 通用表表达式 之 精典递归实战<br />-- Author      : 柳永法(yongfa365) http://www.yongfa365.com/ cto@yongfa365.com<br />-- CreateDate  : 2010-05-03 11:09:46<br />-- Environment : Microsoft SQL Server 2005 - 9.00.4035.00 (Intel X86) <br />--               Nov 24 2008 13:01:59 <br />--               Copyright (c) 1988-2005 Microsoft Corporation<br />--               Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 2)<br />-- Reference   : http://msdn.microsoft.com/zh-cn/magazine/cc163346.aspx#S1<br />----------------------------------------------------------------------------------]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-CET-Recursive.html</link>
  <pubDate>Mon, 03 May 2010 11:26:20 GMT</pubDate>
</item>
<item>
  <title>SQL Server全文搜索 注意事项及简单介绍</title>
  <description><![CDATA[        SQL Server全文搜索 一项强大而又让人无可奈何的技术！说他强大，是因为他的检索速度极快，比like快几十上百倍。说他让人无可奈何，是因为很多场合对准确性要求很高，使用者又不能自己很好的组织查询语句，所以查出来的结果让人觉得没有确定性。<br /><br />        原本觉得这技术很不错，但真正研究起来，发现问题还是很多，研究到最后觉得这技术对柳永法(yongfa365)'Blog来说，只会用到对精确度不高的场合，像：CMS系统，大量文章，根据tag进行快速检索，这时他的快速检索优势能发挥出来，其它地方，真不敢用。像OA，各种业务系统，用他搜索不出要的东西，或者尝试很多次搜索，那用户还不郁闷死。暂且把研究结果放上来，以备后查。<br />]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-FullText-Search-Intro.html</link>
  <pubDate>Sun, 25 Apr 2010 21:59:26 GMT</pubDate>
</item>
<item>
  <title>SQL Server全文搜索关于varchar与nvarchar的问题</title>
  <description><![CDATA[在我以前的文章中提到过，SQL Server全文搜索有一个问题，就是记录不全，上周末经过分析发现，<br /><br />字段类型是varchar 且 如果搜索的的词正好是文章的结尾，就搜索不到，解决方法是在他后边再加上一个.让他不是在文章最后就行<br />字段类型换成nvarchar后，问题解决]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-FullText-Search-varchar-nvarchar.html</link>
  <pubDate>Sat, 24 Apr 2010 19:40:10 GMT</pubDate>
</item>
<item>
  <title>SQL Server CLR 极速入门，启用、设计、部署、运行</title>
  <description><![CDATA[SQL Server CLR 设计简单，部署方便，效率很高，很安全，随数据库移动。<br />保证你10分钟内学会]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-CLR.html</link>
  <pubDate>Sat, 24 Apr 2010 14:42:26 GMT</pubDate>
</item>
<item>
  <title>SQL Server 常用函数集锦</title>
  <description><![CDATA[一、字符转换函数<br />1、ASCII()<br />返回字符表达式最左端字符的ASCII 码值。在ASCII（）函数中，纯数字的字符串可不用‘’括起来，但含其它字符的字符串必须用‘’括起来使用，否则会出错。<br /><br />2、CHAR()<br />将ASCII 码转换为字符。如果没有输入0 ~ 255 之间的ASCII 码值，CHAR（） 返回NULL 。<br /><br />3、LOW..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-Function.html</link>
  <pubDate>Thu, 31 Dec 2009 11:33:23 GMT</pubDate>
</item>
<item>
  <title>SQL Server 假执行，预执行</title>
  <description><![CDATA[柳永法(yongfa365)'Blog经常上服务器更新数据库，而数据库内容很重要，如果一不小心更新错了，那问题可就大了。<br />有人说，及时备份数据呀，可是我的数据实时性太强了，如果更新错了，还原再操作，那可是有损失的。<br />我想有没有这样的功能，我执行了，数据库也返回结果了，但实际是没有执行的，我觉得事务应该会有类似的功能..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-Jia-Zhi-Xing-Yu-Zhi-Xing.html</link>
  <pubDate>Tue, 03 Nov 2009 17:33:15 GMT</pubDate>
</item>
<item>
  <title>SQL.Assistant.4.8 SQL语句智能提示工具支持Access</title>
  <description><![CDATA[ 前几天给大家介绍了下SQL Prompt ,不知道大家用后感觉如何。那个对我帮助挺大。<br />其实当时我就想写上这次要介绍SQL Assistant了，但由于当时试用时觉得SQL Assistant没有SQL Prompt好，且觉得他支持那么多软件也没什么用呀。<br />后来发现，其实SQL Assistant还是不错的，注册方面不像SQL Prompt还要破解，直接来个注册码就OK..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Assistant.html</link>
  <pubDate>Sat, 31 Oct 2009 11:45:41 GMT</pubDate>
</item>
<item>
  <title>存储过程IN参数疑难问题解决方法【真正解决】</title>
  <description><![CDATA[        首先，我不会令大家失望，真想解决问题的认真往下看<br /><br />        很久很久以前，我在使用Server的存储过程时，遇到一个问题，就是，IN(@ids)这样的语句执行不了，其实是可以执行的，很多人提出的解决方案是，EXEC(SQL)，但对于像我这样的很多人来说，本来存储过程效率高是因为他预执行了一次（据说是，没验证过），反正SQL Server肯定对他有一定的优化方案。而如果使用EXEC(SQL)相当于还要临时组合一下，最后执行的却是SQL语句而已，所以这种方案，不可行，至少对我来说不可行。<br /><br />        今天又遇到这样的问题，你说我存储过程都写了这么一长段了，我再set 一下，把他们都放''里再改下，那多郁闷，通过分析：既然IN里的内容可以自己写如in(1,2,3)或in('我','是','柳','永法')或是in(select id from tablename)。那就是说，前两种就是我现在遇到的问题，怎么传值进去都不行，那看来只有打最后一种方法的主意了。<br />]]></description>
  <link>http://www.yongfa365.com/Item/PROCEDURE-IN-SQL-Server.html</link>
  <pubDate>Fri, 30 Oct 2009 23:14:27 GMT</pubDate>
</item>
<item>
  <title>SQL Prompt 4 SQL语句智能提示及格式化工具</title>
  <description><![CDATA[没找不知道，一找吓一跳，这软件除了SQL语句格式化外，还有智能提示功能。虽然我一般感觉手写就可以了，不过如果有一软件有这功能，那可真是太好了，当下试用了下，感觉他的代码格式化功能不行，没我以前找的那个好，仔细研究后，发现他可以自定义格式化后的样式，不过，还得自定义，不爽。不过，现在对我来说最主要的已经不是他的SQL语句格式化功能了，而换成了SQL语句智能提示。]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Prompt.html</link>
  <pubDate>Sat, 24 Oct 2009 12:38:15 GMT</pubDate>
</item>
<item>
  <title>关于SQL Server存储过程的一些看法</title>
  <description><![CDATA[接触SQL Server存储过程前，觉得这东西可太神秘了，经常看到招聘信息上写着，熟悉SQL Server存储过程，所以也对这个词比较敬畏；<br />后来学习.net时，为了敢上时代的潮流，所以开始学习SQL Server存储过程，学了一会（真的是一会），感觉，学会了，存储过程不过如此，就是把SQL语句写到SQL Server存储过程里就行了，就这么简单..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-procedure.html</link>
  <pubDate>Wed, 20 May 2009 21:19:09 GMT</pubDate>
</item>
<item>
  <title>MySQL学习笔记</title>
  <description><![CDATA[MYSQL数据库 如何 下载及安装：<br />下载地址：http://dev.mysql.com/downloads/，下载下来后直接双击安装，随便安，想安装到哪就安装到哪<br /> <br />＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝<br />MYSQL数据库 如何 配置：<br />一般只要修改一下my.ini就行，把它指到数据库目录下<br />柳..]]></description>
  <link>http://www.yongfa365.com/Item/MySQL-Xue-Xi-Bi-Ji.html</link>
  <pubDate>Sun, 10 May 2009 22:27:20 GMT</pubDate>
</item>
<item>
  <title>更改 Sql Server 2005 默认端口方法</title>
  <description><![CDATA[    In SQL Server Configuration Manager, expand SQL Server 2005 Network Configuration, and then click on the server instance you want to configure.<br />    In the right pane, double-click TCP/IP.<br />    In the TCP/IP Properties dialog box, click the IP Addresses tab.<br />    In the TCP Port box of the IPA..]]></description>
  <link>http://www.yongfa365.com/Item/Sql-Server-2005-Change-Port.html</link>
  <pubDate>Tue, 17 Mar 2009 18:14:10 GMT</pubDate>
</item>
<item>
  <title>SQL 2005 ROW_NUMBER() 存储过程分页</title>
  <description><![CDATA[<br /><br />create PROCEDURE [dbo].[ShowPage]<br />@strSQL		varchar(max) = '',		-- 如：'a.UserName,a.Password,b.id from Users a left join Roles b on a.id=b.id where a.id&gt;0'<br />@strOrder	varchar(max) = '',		-- 排序的字段名 如：'a.id desc,a.AddTime desc'<br />@PageSize	int = 10,				-- 页尺寸<br />@PageIndex	int = 1					-- ..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-2005-ROW_NUMBER-ShowPage.html</link>
  <pubDate>Thu, 05 Mar 2009 10:48:42 GMT</pubDate>
</item>
<item>
  <title>数据库引擎优化顾问 最简单的使用方法(SQL2005/SQL2008)</title>
  <description><![CDATA[SQL2005/SQL2008里提供了 数据库引擎优化顾问 但启动了几次都不会用，所以就一直没用了。<br />前几天观察公司OA运行情况时，发现了，与数据库引擎优化顾问在一起的，还有一个：SQL Server Profiler 随便一操作，呵呵，可以监控当前SQL当前执行哪些语句，实时的。感觉不错，SQL语句一堆一堆的执行。<br />运行一会后发现结果是可以保..]]></description>
  <link>http://www.yongfa365.com/Item/ShuJuKuYinQingYouHuaGuWen-SQL2005.html</link>
  <pubDate>Sun, 01 Mar 2009 21:13:40 GMT</pubDate>
</item>
<item>
  <title>触发器实例：表的字段变化时更新数据</title>
  <description><![CDATA[<br />--提问：写个触发器 <br />--功能：Articles里的Ding变为1或2时，更新这条记录的DingTime=getdate() <br /><br /><br />--假如这个表的主键为ID. <br /><br /><br />create trigger 固顶时更新固顶时间 <br />on Articles <br />for update AS <br />if update(Ding) <br />begin <br />if (select ding from inserted)=1 or (select ding from inserted)=2 <br /><br />update a..]]></description>
  <link>http://www.yongfa365.com/Item/trigger-Table-Field-Changed.html</link>
  <pubDate>Tue, 24 Feb 2009 11:54:04 GMT</pubDate>
</item>
<item>
  <title>Microsoft SQL Server 2005 整合、集成SP3方法</title>
  <description><![CDATA[        微软发布了SQL Server 2005 SP3的正式版，而这也将是该软件的最后一次升级服务。SQL Server 2005 SP3版本号9.00.4035，作为一个累计升级包集成了此前所有的更新补丁，能全方位提升SQL Server 2005的各种服务等级，适用于企业版、企业评估版、开发者版、标准版、工作组版等所有商业版本。<br />]]></description>
  <link>http://www.yongfa365.com/Item/Microsoft-SQL-Server-2005-With-SP3.html</link>
  <pubDate>Wed, 17 Dec 2008 15:13:17 GMT</pubDate>
</item>
<item>
  <title>Sql Server 2008 为什么那么大</title>
  <description><![CDATA[SQL Server 2000 500M多<br />SQL Server 2005 1.4G<br />SQL Server 2008 为什么会有　3.27G<br />从那个ISO镜像文件里我们可以看到有三个文件夹 ia64,X64,X86,每一个文件夹都有1G多，从表面上就可以看出来，因为现在CPU多了，系统有64及32位之分了，所以微软的产品得考虑这些情况，所以，这几个文件都得放光盘里了，所以文件就大了。..]]></description>
  <link>http://www.yongfa365.com/Item/Sql-Server-2008-3.27GB-big.html</link>
  <pubDate>Wed, 05 Nov 2008 11:12:20 GMT</pubDate>
</item>
<item>
  <title>批量附加数据库的一种方法</title>
  <description><![CDATA[--作者：chenjing957 <br />--http://www.windbi.com/showtopic.aspx?forumid=6&amp;topicid=245&amp;go=prev<br />--使用方法：在重装系统前，运行这个，把生成的SQL语句保存起来<br />--　　　　　重装系统后再运行生成的那个文件，便可实现批量附加数据库<br /><br />--批量附加数据库备份例子：<br />--exec attach_db_pro 'c:\program files\microsoft sql server\data']]></description>
  <link>http://www.yongfa365.com/Item/PiLiangFuJiaShuJuKuDeYiZhongFangFa.html</link>
  <pubDate>Sun, 19 Oct 2008 16:23:43 GMT</pubDate>
</item>
<item>
  <title>Microsoft SQL Server 2008 Enterprise Edition 简体中文企业版</title>
  <description><![CDATA[　　Microsoft SQL Server 2008 Enterprise Edition 简体中文企业版 终于出来了，我知道的比较晚点，在网上没找到下载地址，在微软网站上还转了一圈，注册，用他的工具下载，分析，最终找到一个地址：<br />http://sqlserver.dlservice.microsoft.com/dl/download/B/8/0/B808AF59-7619-4A71-A447-F597DE74AC44/SQLFULL_CHS.iso?..]]></description>
  <link>http://www.yongfa365.com/Item/Microsoft-SQL-Server-2008-Enterprise-Edition.html</link>
  <pubDate>Fri, 26 Sep 2008 15:24:22 GMT</pubDate>
</item>
<item>
  <title>SQL Server 2005系统数据库master重建、修复</title>
  <description><![CDATA[虽然问题是解决了，不过还有一个问题，就是：重建后相当于数据库重新安装了一次，所有的登录用户，数据库都没了（听说数据都在master里，master被重建了里面的数据库相关信息当然没了。数据库文件还在，没被删除。），所以重建或者说修复好后，你还得把每个数据库都附加进来，并建相关用户。]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-2005-Rebuild-System-Databases.html</link>
  <pubDate>Thu, 25 Sep 2008 14:01:53 GMT</pubDate>
</item>
<item>
  <title>SQL快速生成大量数据记录及日志记录</title>
  <description><![CDATA[use master<br />drop database dbname<br />create database dbname<br />go<br />use dbname<br /><br />go<br /><br />create table testlog ( usr varchar(50),pwd varchar(100))<br /><br />go<br />--先插入一条数据<br />insert into testlog select 'asdfasdfsadfasf','asdfasdfasfdasdf'<br /><br />go<br />--复制表到他本身,执行20次,生成1048576条数据<br />declare @i int<br />de..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-quick-make-big-mdf-log.html</link>
  <pubDate>Tue, 23 Sep 2008 18:03:29 GMT</pubDate>
</item>
<item>
  <title>SQL Left Join 深入了解</title>
  <description><![CDATA[--Info表里有多个字段(如:DeptID,DeptID2)分别与Dept表的ID字段对应<br />--联合查询Info及Dept表，要求结果是：Info表里的所有字段 及 Info表里的DeptID,DeptID2等字段在Dept表中对应的Title字段<br />]]></description>
  <link>http://www.yongfa365.com/Item/Left-Join-SQL-Deep.html</link>
  <pubDate>Fri, 12 Sep 2008 14:17:23 GMT</pubDate>
</item>
<item>
  <title>SQL递归函数列出父级的所有子级(ID ParentID模式)</title>
  <description><![CDATA[SQL递归函数，实现根据传入的当前ID，返回他及他的所有子级的ID及其它相关字段，然后你可以自行筛选。]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Di-Gui-Function-ID-ParentID.html</link>
  <pubDate>Thu, 11 Sep 2008 17:47:50 GMT</pubDate>
</item>
<item>
  <title>SQL Server 系统存储过程sp_MSforeachtable</title>
  <description><![CDATA[     作为DBA会经常需要检查所有的数据库或用户表,比如:检查所有数据库的容量;看看指定数据库所有用户表的容量,所有表的记录数...,我们一般处理这样的问题都是用游标分别处理处理,比如:在数据库检索效率非常慢时,我们想检查数据库所有的用户表,我们就必须通过写游标来达到要求；如果我们用sp_MSforeachtable就可以非常方便的达到相同的目的:EXEC sp_MSforeachtable @command1=&quot;print '?' DBCC CHECKTABLE ('?')&quot;<br />     系统存储过程sp_MSforeachtable和sp_MSforeachdb,是微软提供的两个不公开的存储过程,从mssql6.5开始。存放在SQL Server的MASTER数据库中。可以用来对某个数据库的所有表或某个SQL服务器上的所有数据库进行管理，后面将对此进行详细介绍。]]></description>
  <link>http://www.yongfa365.com/Item/sp_MSforeachtable.html</link>
  <pubDate>Sun, 31 Aug 2008 12:12:15 GMT</pubDate>
</item>
<item>
  <title>SQL语句实现SQL Server 2000及Sql Server 2005日志收缩(批量)</title>
  <description><![CDATA[--SQL语句实现SQL Server 2000及Sql Server 2005日志收缩(批量)<br /><br />DECLARE @name VARCHAR(25)<br />DECLARE @SQL VARCHAR(1000)<br />DECLARE @logid INT<br /><br />DECLARE sysdatabase_name CURSOR FOR SELECT  name FROM master.dbo.sysdatabases<br /><br />OPEN sysdatabase_name<br /><br /><br />FETCH NEXT FROM sysdatabase_name   INTO   @name<br /><br />..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-SQL-Server-2000-2005-LOG-DBCC-SHRINKFILE.html</link>
  <pubDate>Sun, 24 Aug 2008 10:26:53 GMT</pubDate>
</item>
<item>
  <title>SQL语句删除SQL Server 里所有用户表</title>
  <description><![CDATA[ <br /><br /><br />--删除指定数据库里的所有用户表<br /><br />USE DATABASENAME<br />--DATABASENAME 是待清理的数据库<br /><br />GO<br /><br />DECLARE @au_lname VARCHAR(40),@SQLString NVARCHAR(500)<br /><br />DECLARE tb CURSOR FOR<br />SELECT name FROM sysobjects WHERE xtype='U'<br /><br />OPEN tb<br /><br />-- Perform the FIRST FETCH.<br />FETCH NEXT FROM tb INTO @au_lnam..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Drop-All-User-Table.html</link>
  <pubDate>Wed, 20 Aug 2008 16:25:58 GMT</pubDate>
</item>
<item>
  <title>SQL Server数据库中几个危险的扩展存储过程</title>
  <description><![CDATA[MSSQL数据库存在几个危险的扩展存储过程，默认Public组可执行权限，SQL注入者可利用此读取文件目录及用户组，并可通过先写入数据库然后导出为文件的方法往服务器写入危险脚本进一步提权，或直接使用某些存储过程执行命令，如xp_cmdshell。]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-Expansion-Process.html</link>
  <pubDate>Mon, 11 Aug 2008 15:26:26 GMT</pubDate>
</item>
<item>
  <title>阿Ｄ常用的一些注入命令</title>
  <description><![CDATA[//看看是什么权限的<br />and 1=(Select IS_MEMBER('db_owner'))<br />And char(124)%2BCast(IS_MEMBER('db_owner') as varchar(1))%2Bchar(124)=1 ;--<br /><br />//检测是否有读取某数据库的权限<br />and 1= (Select HAS_DBACCESS('master'))<br />And char(124)%2BCast(HAS_DBACCESS('master') as varchar(1))%2Bchar(124)=1 --<br /><br /><br />数字类型<br />..]]></description>
  <link>http://www.yongfa365.com/Item/ADChangYongDeYiXieZhuRuMingLing.html</link>
  <pubDate>Mon, 11 Aug 2008 15:15:29 GMT</pubDate>
</item>
<item>
  <title>一些SQL Server存储过程参数及举例</title>
  <description><![CDATA[Microsoft included several hundred stored procedures in the various versions of Microsoft SQL Server and it has documented a good percentage of them. But many stored procedures remain undocumented. Some are used within the Enterprise Manager GUI in SQL 2000 and were not intended to be used by other ..]]></description>
  <link>http://www.yongfa365.com/Item/Examples-of-SQL-Server-stored-procedures-and-parameters.html</link>
  <pubDate>Mon, 11 Aug 2008 15:10:45 GMT</pubDate>
</item>
<item>
  <title>sql2005 用户 'NT AUTHORITY\NETWORK SERVICE' 登录失败</title>
  <description><![CDATA[1.打开SQL Server Manegement Studio<br /><br />2.在安全性 - 登录名 中 添加 NETWORK SERVICE<br /><br />3.双击该用户 在服务器角色 中 勾选 sysadmin <br /><br />OK 问题解决<br />]]></description>
  <link>http://www.yongfa365.com/Item/SQL2005-NT-AUTHORITY-NETWORK-SERVICE-Login-Failed.html</link>
  <pubDate>Fri, 25 Jul 2008 21:20:50 GMT</pubDate>
</item>
<item>
  <title>SQL Select 完整语法、主要子句、优先级</title>
  <description><![CDATA[优先级：GROUP BY --&gt; HAVING --&gt; ORDER BY --&gt; TOP 10 *]]></description>
  <link>http://www.yongfa365.com/Item/SQLSelectWanZhengYuFaZhuYaoZiJuYouXianJi.html</link>
  <pubDate>Fri, 25 Jul 2008 13:20:35 GMT</pubDate>
</item>
<item>
  <title>MSSQL收缩所有数据库，让*.ldf日志文件都变成1M</title>
  <description><![CDATA[declare cur cursor for Select Name FROM Master..SysDatabases where name&lt;&gt;'master' and name&lt;&gt;'model' and name&lt;&gt;'msdb' and name&lt;&gt;'Northwind' and name&lt;&gt;'pubs'<br />declare @tb sysname <br /><br />open cur <br />fetch next from cur into @tb <br />while @@fetch_status=0 <br />begin <br />  exec ('dump transaction ['+@tb+'] with no_log') <br />  exec ('backup log ['+@tb+'] with no_log') <br />  exec ('dbcc shrinkdatabase(['+@tb+'])') <br />  fetch next from cur into @tb <br />end <br />close cur <br />deallocate cur<br />]]></description>
  <link>http://www.yongfa365.com/Item/MSSQL-Shrink-All-Database-yongfa365.html</link>
  <pubDate>Mon, 07 Jul 2008 13:49:49 GMT</pubDate>
</item>
<item>
  <title>[已解决]PHP远程连接MYSQL数据库 非常慢 极其慢的解决方法</title>
  <description><![CDATA[PHP远程连接MYSQL速度慢,有时远程连接到MYSQL用时4-20秒不等,本地连接MYSQL正常,出现这种问题的主要原因是,默认安装的MYSQL开启了DNS的反向解析,在my.ini(WINDOWS系统下)或MY.CNF(UNIX或LINUX系统下)文件的[mysqld]下加入skip-name-resolve这一句，保存。]]></description>
  <link>http://www.yongfa365.com/Item/PHP-MySQL-Slow-OK.html</link>
  <pubDate>Fri, 04 Jul 2008 14:10:03 GMT</pubDate>
</item>
<item>
  <title>Access中的模糊查询语句 like 里的通配符不是%而是*</title>
  <description><![CDATA[一般我们在程序里写模糊查询时都是写成如下这样：<br />Select * from table where txtTitle like '%柳永法%'<br />不管连接的数据库是ACCESS还是SQL Server<br />但是最近写程序时总出现语句正确，但就是出不来结果的情况，比如：手动简单设置服务器安全，及引发的思考，这里提到我写服务查询时总是出不来结果的情况，时间长了，出这问..]]></description>
  <link>http://www.yongfa365.com/Item/AccessZhongDeMoHuChaXunYuJulikeLiDeTongPeiFuBuShiErShi.html</link>
  <pubDate>Mon, 16 Jun 2008 08:22:43 GMT</pubDate>
</item>
<item>
  <title>[已解决]SQL Server 2005 企业版没有 Management Studio管理工具</title>
  <description><![CDATA[1.　先安装SQL Server 2005,再安装vs相关软件（没试，应该可行）。<br /><br />2.　如果先安装了 vs2005 或 vs2008且安装了自带的SQL Server Express 2005的话，得把以前的SQL Server 2005 Express全部卸载干净，然后再安装SQL Server 2005<br /><br />3.　在安装vs2005或vs2008时，不要安装SQL Server 2005  Express,VS安装完后再安装SQL Server 2005(亲测，成功，推荐)<br />]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-2005-Ent-No-Management-Studio.html</link>
  <pubDate>Mon, 09 Jun 2008 11:56:40 GMT</pubDate>
</item>
<item>
  <title>搜索引擎如何判断核心内容的思考</title>
  <description><![CDATA[搜索引擎蜘蛛把页面代码送回搜索引擎服务器后，SE是如何判断页面中最核心的内容呢？<br /><br />先说下Kyw认为的搜索引擎运作过程的前几个步骤：<br />1.&nbsp;蜘蛛下载A页面，送回服务器；<br />2.&nbsp;服务器寻找A页面的核心内容位置，然后去除HTML代码；<br />3.&nbsp;寻找网页核心内容；<br />&amp;hellip;&amp;hellip;<br /><br />我不确定GOOGLE、百度、YAHOO！是否真的有&amp;ld..]]></description>
  <link>http://www.yongfa365.com/Item/e415cfc2fe99aa2c.html</link>
  <pubDate>Sun, 20 Apr 2008 23:56:53 GMT</pubDate>
</item>
<item>
  <title>柳永法常用SQL语句备忘</title>
  <description><![CDATA[--通用建表结构<br />Create Table [dbo].[表名] (<br />  [Id] int primary key identity(1,1),--ID，主键，自动号<br />  [txtTitle] varchar(255),--标题<br />  [txtContent] varchar(MAX),--内容<br />  [AddTime] datetime Default (getdate()),--提交时间<br />  [ModiTime] datetime Default (getdate()),--修改时间<br />  [Hits] int Default (0),--点击数<br />  [Flags] int Default (0) ,--标识<br />  [SortID] int Default (0),--排序号<br /> )<br />]]></description>
  <link>http://www.yongfa365.com/Item/LiuYongFaChangYongSQLYuJuBeiWang.html</link>
  <pubDate>Sun, 20 Apr 2008 14:56:19 GMT</pubDate>
</item>
<item>
  <title>SQL Server的智能功能 数据类型隐式转换</title>
  <description><![CDATA[以前在写一查询时总是要关注这个字段是数字型的还是字符型的，好按格式写相关SQL语句，今天在写一语句时突然发现<br /><br />abc='fs'&nbsp;提示，在从字符型转为数字型时失败！<br /><br />我就想难不成SQL&nbsp;Server会自己为你转换数据类型，于是测试了下，果不其然，<br /><br />即便你的字段类型是字符型的，只要里面都是数字，那么你就可以把它当数字型的来用，<br /><br />跟数字型的好像没什么差别，但肯定是有差别的，只是可以这样用罢了。<br />]]></description>
  <link>http://www.yongfa365.com/Item/SQLServerDeZhiNengGongNengShuJuLeiXingYinShiZhuanHuan.html</link>
  <pubDate>Sun, 20 Apr 2008 01:21:34 GMT</pubDate>
</item>
<item>
  <title>多表，用一个表更新另一个表</title>
  <description><![CDATA[UPDATE&nbsp;表一<br />SET&nbsp;表一.A&nbsp;=&nbsp;表二.B<br />FROM&nbsp;表一,表二<br />WHERE&nbsp;表一.ID&nbsp;=&nbsp;表二.ID]]></description>
  <link>http://www.yongfa365.com/Item/DuoBiaoYongYiGeBiaoGengXinLingYiGeBiao.html</link>
  <pubDate>Sun, 13 Apr 2008 11:56:24 GMT</pubDate>
</item>
<item>
  <title>[邹建]关于primary文件组已满的原因及解决方法总结</title>
  <description><![CDATA[关于primary文件组已满的原因及解决方法总结&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;作者:邹建&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;1.检查你的磁盘剩余空间是否足够,如果没有磁盘剩余空间,则清理磁盘,腾出空间&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;2.检查你的磁盘分区格式&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;如果是FAT16,则数据文件最大只能是2G&nbsp;&nbsp;..]]></description>
  <link>http://www.yongfa365.com/Item/ZouJianGuanYuprimaryWenJianZuYiManDeYuanYinJiJieJueFangFaZongJie.html</link>
  <pubDate>Tue, 25 Mar 2008 09:48:57 GMT</pubDate>
</item>
<item>
  <title>ACCESS数据库文件最大２G,MSSQL数据库文件无限大小？</title>
  <description><![CDATA[<br />最近采集一个网站时采集了一天看了下数据大约有2G,然后习惯性的压缩了一下，然后接着采集，第二天数据又到2G&nbsp;了，第三天还是，我就郁闷了，不会是ＡＣＣＥＳＳ数据库文件大小有限制吧，网上一查果不其然，<br />ACCESS文件最大只能是2G，测试环境是windows&nbsp;2003&nbsp;ent&nbsp;32b&nbsp;,NTFS,<br />后来想改成mssql的，朋友提醒会不会也有这..]]></description>
  <link>http://www.yongfa365.com/Item/ACCESSShuJuKuWenJianZuiDaGMSSQLShuJuKuWenJianWuXianDaXiao.html</link>
  <pubDate>Tue, 25 Mar 2008 09:47:06 GMT</pubDate>
</item>
<item>
  <title>MSSQL如何快速清除数据库日志</title>
  <description><![CDATA[  1。右建数据库属性窗口--故障还原模型--设为简单<br />  2。右建数据库所有任务--收缩数据库<br />  3。右建数据库属性窗口--故障还原模型--设为完全日志记录 <br />]]></description>
  <link>http://www.yongfa365.com/Item/MSSQLRuHeKuaiSuQingChuShuJuKuRiZhi.html</link>
  <pubDate>Tue, 25 Mar 2008 09:37:31 GMT</pubDate>
</item>
<item>
  <title>[已解决]错误 21002: [SQL-DMO]用户“XXX”已经存在。</title>
  <description><![CDATA[---------------------------<br />Microsoft&nbsp;SQL-DMO<br />---------------------------<br />错误&nbsp;21002:&nbsp;[SQL-DMO]用户“XXX”已经存在。<br />---------------------------<br />确定&nbsp;&nbsp;&nbsp;<br />---------------------------]]></description>
  <link>http://www.yongfa365.com/Item/YiJieJueCuoWu21002SQLDMOYongHuXXXYiJingCunZai.html</link>
  <pubDate>Sun, 30 Dec 2007 19:55:02 GMT</pubDate>
</item>
<item>
  <title>[已解决]错误'800a0cb3' 当前记录集不支持更新。这可能是提供程序的限制</title>
  <description><![CDATA[我的解决方法是：给要处理&nbsp;的表加上主键<br /><br />因为多次遇到这样的问题，都是这么解决的，所以我的结论是：要处理的表没有主键，只要给这个表加上主键就可以了<br />]]></description>
  <link>http://www.yongfa365.com/Item/YiJieJueCuoWu800a0cb3DangQianJiLuJiBuZhiChiGengXinZheKeNengShiTiGongChengXuDeXianZhi.html</link>
  <pubDate>Fri, 28 Dec 2007 23:19:04 GMT</pubDate>
</item>
<item>
  <title>Microsoft OLE DB Provider for SQL Server 错误 '80040e21' 多步 OLE DB 操作产生错误。如果可能，请检查每个 OLE DB 状态值。没有工作被完成。</title>
  <description><![CDATA[记得前段时间做数据采集时经常出现这问题没有解决，后来发现可能是字段太小超成的，前天有人问题这个问题，也是字段太小超成的，今天又有人问题这个问题，与是自己操作了下，呵呵，还是这个问题，所以：<br /><br />多步&nbsp;OLE&nbsp;DB&nbsp;操作产生错误&nbsp;一般是数据库字段太小造成的<br />]]></description>
  <link>http://www.yongfa365.com/Item/Microsoft-OLE-DB-Provider-for-SQL-Server-Cuo-Wu-80040e21.html</link>
  <pubDate>Tue, 25 Dec 2007 14:44:02 GMT</pubDate>
</item>
<item>
  <title>汇总查询：截取字符查询</title>
  <description><![CDATA[--建表<br />create&nbsp;table&nbsp;nian(id&nbsp;int,niandu&nbsp;varchar(50),username&nbsp;varchar(50))<br />INSERT&nbsp;nian&nbsp;SELECT&nbsp;1,'2002上半年','username1'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;2,'2003上半年','username2'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;3,'2003上半年','username3'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;4,'2003下半年','username4'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;5,'2003下半年','username5'..]]></description>
  <link>http://www.yongfa365.com/Item/Hui-Zong-Cha-Xun-Jie-Qu-Zi-Fu-Cha-Xun.html</link>
  <pubDate>Tue, 18 Dec 2007 18:11:46 GMT</pubDate>
</item>
<item>
  <title>SQL统计：从北京到天津的与从天津到北京的汇总到一起</title>
  <description><![CDATA[--建表<br />CREATE&nbsp;TABLE&nbsp;LuFei(<br />id&nbsp;INT,<br />fromaddress&nbsp;VARCHAR(50),<br />toaddress&nbsp;VARCHAR(50),<br />types&nbsp;VARCHAR(50),<br />prices&nbsp;INT<br />)<br />GO<br />--添加数据<br />INSERT&nbsp;LuFei&nbsp;SELECT&nbsp;1,'北京','天津','交通费',100<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;2,'北京','天津','交通费',200<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;3,'天津','北京','交通费',300<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;..]]></description>
  <link>http://www.yongfa365.com/Item/SQLTongJiCongBeiJingDaoTianJinDeYuCongTianJinDaoBeiJingDeHuiZongDaoYiQi.html</link>
  <pubDate>Tue, 18 Dec 2007 17:43:11 GMT</pubDate>
</item>
<item>
  <title>一个SQL 统计的例子，用到 CASE</title>
  <description><![CDATA[CREATE&nbsp;TABLE&nbsp;tb(ID&nbsp;INT,TIME&nbsp;datetime)<br />INSERT&nbsp;tb&nbsp;SELECT&nbsp;1,'2005/01/24&nbsp;16:20'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;2,'2005/01/23&nbsp;22:45'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;3,'2005/01/23&nbsp;0:30'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;4,'2005/01/21&nbsp;4:28'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;5,'2005/01/20&nbsp;13:22'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;6,'2005/01/19&nbsp;20:30'<br />UNION&nbsp;ALL&nbsp;SELECT&nbsp;7,'2005/01/1..]]></description>
  <link>http://www.yongfa365.com/Item/Yi-Ge-SQL-Tong-Ji-De-Li-Zi-Yong-Dao-CASE.html</link>
  <pubDate>Mon, 17 Dec 2007 18:26:16 GMT</pubDate>
</item>
<item>
  <title>一个经典的Access数据库</title>
  <description><![CDATA[基本上包罗了access数据库所有的字段类型，以及建立删除数据表，增加删除字段，写入读取所有字段等操作实例！<br /><br />来自微软的msdn<br /><br />下载地址1:acintsql.rar<br /><br />下载地址2:acintsql.rar<br /><br />转自:http://www.readlog.cn/show-1400-1.htm]]></description>
  <link>http://www.yongfa365.com/Item/Yi-Ge-Jing-Dian-De-Access-Shu-Ju-Ku.html</link>
  <pubDate>Tue, 04 Dec 2007 10:48:54 GMT</pubDate>
</item>
<item>
  <title>[直接可测]SQL语句导入导出大全</title>
  <description><![CDATA[1.在&quot;SQL&nbsp;查询分析器&quot;里:<br /><br />导出:<br />EXEC&nbsp;master..xp_cmdshell&nbsp;'bcp&nbsp;&quot;Select&nbsp;*&nbsp;from&nbsp;pubs..jobs&quot;&nbsp;queryout&nbsp;c:\Out.txt&nbsp;-c&nbsp;-S&nbsp;-U&nbsp;sa&nbsp;-P'<br /><br />导入:<br />EXEC&nbsp;master..xp_cmdshell&nbsp;'bcp&nbsp;&quot;pubs..jobs&quot;&nbsp;in&nbsp;c:\Out.txt&nbsp;-c&nbsp;-T'<br /><br />2.在&quot;isql命令行下&quot;:<br /><br />建一个文件C:\test.sql<br />写入查询语..]]></description>
  <link>http://www.yongfa365.com/Item/ZhiJieKeCeSQLYuJuDaoRuDaoChuDaQuan.html</link>
  <pubDate>Tue, 04 Dec 2007 10:33:28 GMT</pubDate>
</item>
<item>
  <title>SQL语句实现SQL Server及ACCESS复制表结构或表结构及内容到新的表</title>
  <description><![CDATA[无论是复制表结构还是内容，还是汇总的结果都可以到一个新的表里，为什么呢，这时我想起了，可以把(select * from table)当成一个表，那这个问题就有答案了：既然可以把选择结果当成一个表，那这个表就可以保存下来了，直接保存成一个真正的表，供以后使用了。 您可以把上面的黄色字体去掉，代码还是一样可以运行的。]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-ACCESS-Copy-Table-Structure-To-New-Table-yongfa365.html</link>
  <pubDate>Thu, 06 Sep 2007 15:31:23 GMT</pubDate>
</item>
<item>
  <title>SQL语句实现附加数据库,可以改数据库物理文件名,数据库名,非常方便</title>
  <description><![CDATA[首先:SQL语句实现附加数据库很简单<br />由于本人经常管理服务器,期间也常给客户附加数据库或服务器出问题时都得对数据库进行操作,<br />以前一两个时不管出什么问题都好解决,<br />现在SQL&nbsp;Server&nbsp;2000数据库便宜了,一堆一堆的人要SQL数据库,<br />这样一来服务器如果进行调整或升级,就会有各种问题,感觉麻烦,尤其是附加数据库时,<br />与时有了下边的文章,代码很简短,但可以实现很多图形化操作非常难实现的操作.而SQL语句实现附加数据库操作非常方便,]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Attach-SQL-Server-2000-Database-Can-Change-DatabaseName-yongfa365.html</link>
  <pubDate>Thu, 30 Aug 2007 13:33:04 GMT</pubDate>
</item>
<item>
  <title>SQL Server 2000 连接中三个最常见错误原因分析</title>
  <description><![CDATA[此文来源与网络,写的实在是太好了,先做个总结：<br /><br /><br />一般问题是：<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;1433端口问题<br />&nbsp;&nbsp;&nbsp;&nbsp;防火墙问题<br />&nbsp;&nbsp;&nbsp;&nbsp;TCP/IP筛选问题<br />&nbsp;&nbsp;&nbsp;&nbsp;版本问题,没打PS4补丁<br />&nbsp;&nbsp;&nbsp;&nbsp;网络问题<br /><br /><br />&nbsp;<br /><br /><br /><br /><br /><br />一、&quot;SQL&nbsp;Server&nbsp;不存在或访问被拒绝&quot;<br /><br />这个是最复杂的,错误发生的原因比较多,需要检查的方面也比较多.<br /><br /><br />一..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-2000-Connection-Error-3-Question-Answer.html</link>
  <pubDate>Fri, 17 Aug 2007 18:17:44 GMT</pubDate>
</item>
<item>
  <title>我的MSSQL 2000企业管理器与SQL查询分析器连接不到别人的机器上,而别人可以连接到我机器上</title>
  <description><![CDATA[很可能是1433端口问题：<br /><br /><br />检测方法：telnet&nbsp;对方机器1433&nbsp;回车,如果可以连接上直接黑屏,不能连接上会报错,让对方机器防火墙开启1433端口,及TCP/IP筛选里也允许1433端口.<br /><br /><br />还有就是,最好装上SP4补丁,这样问题会少很多.（比如：别人的机器都可以连接到远程服务器,而我的却不可以）<br /><br /><br />常见的错误是：<br /><br /><br />未能建立..]]></description>
  <link>http://www.yongfa365.com/Item/MSSQL-SQL-Server-2000-Can-not-connection-other-PC.html</link>
  <pubDate>Fri, 17 Aug 2007 17:47:01 GMT</pubDate>
</item>
<item>
  <title>SQL Server 2000 系统存储过程</title>
  <description><![CDATA[SQL&nbsp;Server&nbsp;2000&nbsp;系统存储过程<br /><br />在&nbsp;Microsoft&amp;reg;&nbsp;SQL&nbsp;Server&amp;trade;&nbsp;中，许多管理和信息活动可以通过系统存储过程执行。系统存储过程按这些分类分组。<br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;分类<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;描述<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Active&nbsp;Directory&nbsp;过程<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;用于在&nbsp;Microsoft&nbsp;Windows&amp;reg;&nbsp;2..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-2000-System-Stored-Procedure-All-sp_.html</link>
  <pubDate>Thu, 16 Aug 2007 07:47:45 GMT</pubDate>
</item>
<item>
  <title>SQL Server 2000登录,用户,角色,组用到的系统存储过程 </title>
  <description><![CDATA[登录、用户、角色和组是&nbsp;Microsoft&amp;reg;&nbsp;SQL&nbsp;Server&amp;trade;&nbsp;2000&nbsp;安全机制的基础,(一般我们都是通过界面化操作来实现,并不能很深入的了解其原理)。连接到&nbsp;SQL&nbsp;Server&nbsp;的用户必须使用特定的登录标识符&nbsp;(ID)&nbsp;标识自己。因此，用户只能查看经授权可以查看的表和视图，并且只能执行经授权可以执行的存储过程和管理功能。这一安全..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-2000-All-sp_-Login-User-Role.html</link>
  <pubDate>Wed, 15 Aug 2007 14:48:19 GMT</pubDate>
</item>
<item>
  <title>[成功]SQL Server 2000 数据库同步[一台服务器，一台动态IP的备份机]</title>
  <description><![CDATA[为什么要同步SQL Server 2000 数据库，它都用在什么场合 <br />SQL Server 2000 数据库同步配置的原理 <br />从0开始一步一步配置SQL Server 2000 数据库同步，非常细 <br />已经非常熟练，可以看精品版SQL Server 2000 数据库同步配置 <br />配置SQL Server 2000 数据库同步时的 常见问题 ]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-2000-Database-Synchronization-yongfa365.html</link>
  <pubDate>Tue, 07 Aug 2007 23:31:15 GMT</pubDate>
</item>
<item>
  <title>SQL语名创建,修改,删除 数据库,表,字段,登录,用户[SQL Server版]</title>
  <description><![CDATA[&nbsp;<br /><br /><br />--建数据库<br />CREATE&nbsp;DATABASE&nbsp;yongfa365_com<br />on<br />(&nbsp;NAME&nbsp;=&nbsp;yongfa365_comt,<br />&nbsp;&nbsp;&nbsp;FILENAME&nbsp;=&nbsp;'D:\yongfa365_com.mdf',<br />&nbsp;&nbsp;&nbsp;SIZE&nbsp;=&nbsp;4,<br />&nbsp;&nbsp;&nbsp;MAXSIZE&nbsp;=&nbsp;10,<br />&nbsp;&nbsp;&nbsp;FILEGROWTH&nbsp;=&nbsp;1&nbsp;<br />)<br /><br />--删数据库<br />DROP&nbsp;DATABASE&nbsp;yongfa365_com<br /><br />--建表<br />USE&nbsp;yongfa365_com<br />CREATE&nbsp;TABLE&nbsp;[dbo].[Users]&nbsp;(<br />&nbsp;[ID]&nbsp;[int]&nbsp;&nbsp;PRIMAR..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Create-Drop-Alter-Database-Table-sp_addlogin-sp_adduser-SQL-Server-yongfa365.html</link>
  <pubDate>Tue, 07 Aug 2007 23:29:35 GMT</pubDate>
</item>
<item>
  <title>SQL Server 存储字符数大于8000的问题WRITETEXT，UPDATETEXT</title>
  <description><![CDATA[SQL&nbsp;Server&nbsp;2000专门提供了处理text,ntext,image字段的函数，他们是：<br /><br />TEXTPTR<br /><br />TEXTVALID<br /><br />READTEXT<br /><br />UPDATETEXT<br /><br />WRITETEXT<br /><br />一般作用方法：<br /><br />写字段WRITETEXT&nbsp;：<br /><br />DECLARE&nbsp;@val&nbsp;varbinary(16)<br /><br />SELECT&nbsp;@val&nbsp;=&nbsp;TEXTPTR(字段名)&nbsp;FROM&nbsp;表名&nbsp;where&nbsp;条件<br /><br />WRITETEXT&nbsp;表名.字段名&nbsp;@val&nbsp;'您的长字符串，一..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-Store-More-Than-8000-WRITETEXT-UPDATETEXT-yongfa365.html</link>
  <pubDate>Tue, 07 Aug 2007 23:27:26 GMT</pubDate>
</item>
<item>
  <title>SQL Server 日期函数 集合DATEADD,DATEDIFF,DATENAME,DATEPART</title>
  <description><![CDATA[SQL&nbsp;Server&nbsp;里的日期和时间函数,因为在这方面总是出问题,所以总结一下,本人主要用到的是DATEPART<br /><br />SQL&nbsp;Server&nbsp;里的日期和时间函数<br /><br />这些标量函数对日期和时间输入值执行操作，并返回一个字符串、数字值或日期和时间值。<br /><br /><br />下表列出日期和时间函数以及它们的确定性属性。<br /><br /><br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;函数..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-DATEADD-DATEDIFF-DATENAME-DATEPART-yongfa365.html</link>
  <pubDate>Tue, 07 Aug 2007 23:22:48 GMT</pubDate>
</item>
<item>
  <title>SQL Server 最常用很有用的函数</title>
  <description><![CDATA[1，统计函数&nbsp;avg,&nbsp;count,&nbsp;max,&nbsp;min,&nbsp;sum<br /><br /><br />多数聚会不统计值为null的行。可以与distinct一起使用去掉重复的行。可以与group&nbsp;by&nbsp;来分组<br /><br /><br />2，&nbsp;数学函数<br /><br /><br />SQRT&nbsp;<br /><br />ceiling（n)&nbsp;返回大于或者等于n的最小整数&nbsp;<br /><br />floor(n),&nbsp;返回小于或者是等于n的最大整数&nbsp;<br /><br />round(m,n),&nbsp;四舍五入,n是保留小数的位数&nbsp;<br /><br />abs(n)&nbsp;..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-Comm-Function.html</link>
  <pubDate>Tue, 07 Aug 2007 23:17:58 GMT</pubDate>
</item>
<item>
  <title>不能读取记录；在 'MSysObjects' 上没有读取数据权限。80040E09</title>
  <description><![CDATA[今天在改造以前一段程序时遇到这样一个问题<br /><br /><br />当我读取ACCESS里的系统表MSysObjects时，出现：不能读取记录；在&nbsp;'MSysObjects'&nbsp;上没有读取数据权限。的提示，语句是：select&nbsp;name&nbsp;from&nbsp;MSysObjects&nbsp;where&nbsp;type=1&nbsp;and&nbsp;flags=0，而这个语句是可以直接在ACCESS查询器里使用的，不知为何，网游一翻，找到解决方法，不过还好，..]]></description>
  <link>http://www.yongfa365.com/Item/Can-Not-Read-Recordset-In-MSysObjects-Table.html</link>
  <pubDate>Sat, 04 Aug 2007 13:17:38 GMT</pubDate>
</item>
<item>
  <title>柳永法:SQL入门基础学习笔记.txt</title>
  <description><![CDATA[柳永法(yongfa365)'Blog<br /><br /><br />第6章&nbsp;分组和聚合数据<br /><br /><br />GROUP&nbsp;BY&nbsp;子句根据它前面的参数集&nbsp;分组结果。当处理GROUP&nbsp;BY&nbsp;子句时，数据库系统首先基于FORM和WHERE子句创建一个临时结果集。也就是说先执行SELECT&nbsp;*&nbsp;FROM&nbsp;TABLE&nbsp;WHERE&nbsp;A=B，然后才GROUP&nbsp;BY<br /><br /><br />根据SQL规则，不允许&nbsp;组合&nbsp;聚合函数&nbsp;和&nbsp;非聚合&nbsp;的列。如:SELECT&nbsp;A，..]]></description>
  <link>http://www.yongfa365.com/Item/Beginning-SQL-Diary-yongfa365.html</link>
  <pubDate>Sun, 22 Jul 2007 22:37:52 GMT</pubDate>
</item>
<item>
  <title>SQL Server 附加数据库的方法,只有MDF,没有日志文件LDF</title>
  <description><![CDATA[如果是SQL&nbsp;Server2000的话只要选中MDF文件点击添加就会提示是否自动生成新的log文件，<br /><br /><br />如果是SQL&nbsp;Server2005点击添加选取MDF文件后再选中日志项点击删除，最后点击确认就会自动生成新的log文件了。<br /><br /><br />&nbsp;但本人操作时，是把物理文件名也给改了，用这种方法是不行的。所以要是想改物理名的话，先按上面的方法来一..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-2000-2005-Additional-database-only-MDF-no-log-files-LDF.html</link>
  <pubDate>Fri, 13 Jul 2007 09:52:18 GMT</pubDate>
</item>
<item>
  <title>SQL Server 2000 本地连接正常，远程连接出错 [DBNETLIB][ConnectionOpen (Connect()).]SQL Server 不存在或拒绝访问</title>
  <description><![CDATA[Microsoft&nbsp;OLE&nbsp;DB&nbsp;Provider&nbsp;for&nbsp;SQL&nbsp;Server&nbsp;<br /><br /><br />[DBNETLIB][ConnectionOpen&nbsp;(Connect()).]SQL&nbsp;Server&nbsp;不存在或拒绝访问。<br /><br /><br />/conn.asp<br /><br /><br />解决方法：防火墙里允许：TCP&nbsp;1433&nbsp;端口<br /><br /><br />还有一种可能是C:\Windows\Temp加上everyone<br /><br /><br /><br /><br /><br /><br />网上找到这一个相关的说明，关于&nbsp;ACCESS的<br /><br /><br />前天，N久以前做的一个..]]></description>
  <link>http://www.yongfa365.com/Item/e6489cfc9c5723ff.html</link>
  <pubDate>Wed, 27 Jun 2007 15:32:38 GMT</pubDate>
</item>
<item>
  <title>如何更改ACCESS默认的中文输入</title>
  <description><![CDATA[打开ACCESS&nbsp;&nbsp;工具--&gt;选项--&gt;键盘页里将&amp;ldquo;数据表IME控制&amp;rdquo;(本人使用的是ACCESS&nbsp;2003&nbsp;里边是:&amp;ldquo;数据表输入法控制&amp;rdquo;)]]></description>
  <link>http://www.yongfa365.com/Item/ba13bf810901273a.html</link>
  <pubDate>Thu, 07 Jun 2007 23:52:00 GMT</pubDate>
</item>
<item>
  <title>SQL SERVER 中如何取年、月、日 -DATEPART函数</title>
  <description><![CDATA[Transact-SQL&nbsp;参考<br /><br /><br />DATEPART<br /><br />返回代表指定日期的指定日期部分的整数。<br /><br />语法<br /><br />DATEPART&nbsp;(&nbsp;<br />,<br /><br />参数<br /><br />datepart<br /><br /><br />是指定应返回的日期部分的参数。下表列出了&nbsp;Microsoft&amp;reg;&nbsp;SQL&nbsp;Server&amp;trade;&nbsp;识别的日期部分和缩写。<br /><br /><br /><br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日期部分<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;缩写<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;..]]></description>
  <link>http://www.yongfa365.com/Item/e31788bd6321986a.html</link>
  <pubDate>Thu, 07 Jun 2007 17:43:05 GMT</pubDate>
</item>
<item>
  <title>SQL Server 2000 数据库日志太大！如何管理,清除,变小,压缩它</title>
  <description><![CDATA[１.打开企业管理器，右击要处理的数据库－－》属性－－》选项－－》故障还原，选“简单”－－》确定<br /><br /><br />２.右击要处理的数据库－－》所有任务－－》收缩数据库－－》什么也不动，默认第一个是0%,其它两个未选中，点确定－－》如果您以前数据库日志文件大于１M那么现在再看看，是不是只有１M了呢。<br /><br /><br />３.操作..]]></description>
  <link>http://www.yongfa365.com/Item/7f8ec4d46675cf62.html</link>
  <pubDate>Wed, 30 May 2007 18:39:36 GMT</pubDate>
</item>
<item>
  <title>文章存档模块功能实现(asp环境sql语句实现)</title>
  <description><![CDATA[&nbsp;&nbsp;做blog时时里面要实现一个文章存档功能，调试了一会终于出来了，思路是：<br /><br />１.第一层先找出都有哪些年，倒序排列<br /><br />２.第二层统计第一层的年里的月分有多少个，从而得出：YY年MM月(N篇文章)<br /><br />３.留言感谢柳永法同志给大家共享代码<br />select&nbsp;year(addtime)&nbsp;as&nbsp;y&nbsp;from&nbsp;BlogArticle&nbsp;group&nbsp;by&nbsp;year(addtime)&nbsp;order&nbsp;by&nbsp;year(addtime)&nbsp;desc&nbsp;<br />]]></description>
  <link>http://www.yongfa365.com/Item/8d43f88a471d6096.html</link>
  <pubDate>Fri, 11 May 2007 00:02:08 GMT</pubDate>
</item>
<item>
  <title>SQL SERVER实用经验技巧集</title>
  <description><![CDATA[此文是Sql&nbsp;Server实用操作小技巧集合，包括安装时提示有挂起的操作、收缩数据库、压缩数据库、转移数据库给新用户以已存在用户权限、检查备份集、修复数据库等。&nbsp;&nbsp;&nbsp;
<br />　　（一）挂起操作<br />
<br />　　在安装Sql或sp补丁的时候系统提示之前有挂起的安装操作，要求重启，这里往往重启无用，解决办法：<br />
<br />
　　到HKEY..]]></description>
  <link>http://www.yongfa365.com/Item/afc5111282a6fc08.html</link>
  <pubDate>Mon, 12 Mar 2007 18:35:00 GMT</pubDate>
</item>
<item>
  <title>要重装系统 sql server 数据库 备份 恢复 问题</title>
  <description><![CDATA[重装系统，sql&nbsp;server&nbsp;数据库&nbsp;如何备份，装好系统后又如何还原？<br />
解决方法：<br />
备份sql&nbsp;数据库目录下的data目录下的所有数据及所有您放在其它目录下的数据库文件。<br />
<br />
装系统把以上备份的文件又放回原处启动服务就可以了，权限，什么的都有了]]></description>
  <link>http://www.yongfa365.com/Item/be1cd9d549a1dc94.html</link>
  <pubDate>Wed, 07 Feb 2007 20:40:00 GMT</pubDate>
</item>
<item>
  <title>SQL Convert函数</title>
  <description><![CDATA[使用&nbsp;CONVERT：<br /><br /><br />CONVERT&nbsp;(data_type<br />&nbsp;[,&nbsp;style<br /><br />参数<br /><br />expression<br /><br /><br />是任何有效的&nbsp;Microsoft&amp;reg;&nbsp;SQL&nbsp;Server&amp;trade;&nbsp;表达式。<br /><br /><br />data_type<br /><br /><br />目标系统所提供的数据类型，包括&nbsp;bigint<br /><br /><br />length<br /><br /><br />nchar<br /><br /><br />style<br /><br /><br />日期格式样式，借以将&nbsp;datetime<br /><br /><br />SQL&nbsp;Server&nbsp;支持使用科威特算法的阿拉伯..]]></description>
  <link>http://www.yongfa365.com/Item/2041c4f429e59677.html</link>
  <pubDate>Wed, 07 Feb 2007 19:44:00 GMT</pubDate>
</item>
<item>
  <title>精妙SQL语句收集</title>
  <description><![CDATA[精妙SQL语句收集<br />
<br />
<br />
一、基础<br />
<br />
1、说明：创建数据库<br />
Create&nbsp;DATABASE&nbsp;database-name<br />
2、说明：删除数据库<br />
drop&nbsp;database&nbsp;dbname<br />
3、说明：备份sql&nbsp;server<br />
---&nbsp;创建&nbsp;备份数据的&nbsp;device<br />
USE&nbsp;master<br />
EXEC&nbsp;sp_addumpdevice&nbsp;'disk',&nbsp;'testBack',&nbsp;'c:\mssql7backup\MyNwind_1.dat'<br />
---&nbsp;开始&nbsp;备份<br />
BACK..]]></description>
  <link>http://www.yongfa365.com/Item/39d0a01bf72df144.html</link>
  <pubDate>Wed, 07 Feb 2007 19:24:00 GMT</pubDate>
</item>
<item>
  <title>SQL Server开发人员应聘常被问的问题妙解汇总</title>
  <description><![CDATA[目前在职场中很难找到非常合格的数据库开发人员。我的一个同事曾经说过:&amp;ldquo;SQL开发是一门语言，它很容易学，但是很难掌握。&amp;rdquo;<br />
<br />
在面试应聘的SQL&nbsp;Server数据库开发人员时，我运用了一套标准的基准技术问题。下面这些问题是我觉得能够真正有助于淘汰不合格应聘者的问题。它们按照从易到难的顺序排列。当您问到关..]]></description>
  <link>http://www.yongfa365.com/Item/23c331402eb94828.html</link>
  <pubDate>Tue, 06 Feb 2007 20:58:00 GMT</pubDate>
</item>
<item>
  <title>sql语句实现：根据B表的汇总结果更新A表里的数据，A.username=B.username</title>
  <description><![CDATA[sql语句实现：根据B表的汇总结果更新A表里的数据，A.username=B.username<br />
<br />
sql语句实现：根据B表的汇总结果更新A表里的数据，A.username=B.username<br />
<br />
如：<br />
TableA&nbsp;&nbsp;&nbsp;&nbsp;username是唯一的<br />
id&nbsp;username&nbsp;income<br />
1&nbsp;&nbsp;&nbsp;user1&nbsp;&nbsp;&nbsp;&nbsp;20<br />
2&nbsp;&nbsp;&nbsp;user2&nbsp;&nbsp;&nbsp;&nbsp;20<br />
3&nbsp;&nbsp;&nbsp;user3&nbsp;&nbsp;&nbsp;&nbsp;30<br />
4&nbsp;&nbsp;&nbsp;user4&nbsp;&nbsp;&nbsp;&nbsp;40<br />
5&nbsp;&nbsp;&nbsp;user5&nbsp;&nbsp;&nbsp;&nbsp;50<br />
<br />
Ta..]]></description>
  <link>http://www.yongfa365.com/Item/8368a7bc80285681.html</link>
  <pubDate>Tue, 06 Feb 2007 20:50:00 GMT</pubDate>
</item>
<item>
  <title>sql case</title>
  <description><![CDATA[select&nbsp;username,<br />
sex=<br />
case&nbsp;<br />
when&nbsp;sex=1&nbsp;then&nbsp;'男'&nbsp;<br />
when&nbsp;sex=2&nbsp;&nbsp;then&nbsp;'女'&nbsp;<br />
end&nbsp;&nbsp;<br />
from&nbsp;users&nbsp;<br />
<br />select&nbsp;username,&nbsp;sex=&nbsp;case&nbsp;&nbsp;when&nbsp;sex=1&nbsp;then&nbsp;'男'&nbsp;&nbsp;when&nbsp;sex=2&amp;nb..]]></description>
  <link>http://www.yongfa365.com/Item/b969ac6e663d9524.html</link>
  <pubDate>Mon, 05 Feb 2007 14:14:00 GMT</pubDate>
</item>
<item>
  <title>sql语句查询 sql server access 数据库里的所有表名,字段名</title>
  <description><![CDATA[SQL&nbsp;SERVER<br />
<br />查看所有表名：<br />
select&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;&nbsp;from&nbsp;&nbsp;&nbsp;sysobjects&nbsp;&nbsp;&nbsp;where&nbsp;&nbsp;&nbsp;type='U'<br />
<br />查询表的所有字段名：<br />
Select&nbsp;name&nbsp;from&nbsp;syscolumns&nbsp;Where&nbsp;ID=OBJECT_ID('表名')<br />
<br />select&nbsp;*&nbsp;from&amp;..]]></description>
  <link>http://www.yongfa365.com/Item/a9b1af11dd76a5ac.html</link>
  <pubDate>Thu, 01 Feb 2007 16:21:00 GMT</pubDate>
</item>
<item>
  <title>两个互不相关的表，联合，追加查询。</title>
  <description><![CDATA[select&nbsp;标题,日期,用户名&nbsp;from&nbsp;lr&nbsp;where&nbsp;用户名='219最新公告'&nbsp;union&nbsp;all&nbsp;select&nbsp;title,adddate,type&nbsp;from&nbsp;biaodan&nbsp;where&nbsp;type='219最新公告'&nbsp;order&nbsp;by&nbsp;日期&nbsp;desc&nbsp;]]></description>
  <link>http://www.yongfa365.com/Item/bf6bf446ffd210ef.html</link>
  <pubDate>Thu, 01 Feb 2007 14:24:00 GMT</pubDate>
</item>
<item>
  <title>Access中的“自动编号”怎么才能不从1开始 或从1开始</title>
  <description><![CDATA[操作前请先确保以前的数据都不要了，或备份好。<br />
<br />1、在access里新建一个查询。<br />
<br />
<br />
2、把视图改为sql视图。<br />
<br />
<br />
3、在里面输入<br />
<br />
<br />
&nbsp;&nbsp;&nbsp;Alter&nbsp;TABLE&nbsp;表名&nbsp;Alter&nbsp;COLUMN&nbsp;[自动编号字段名]&nbsp;COUNTER&nbsp;(你要的初始值,&nbsp;1)<br />
&nbsp;&nbsp;&nbsp;例如：<br />
&amp;n..]]></description>
  <link>http://www.yongfa365.com/Item/274a2983621f8b30.html</link>
  <pubDate>Wed, 24 Jan 2007 12:36:00 GMT</pubDate>
</item>
<item>
  <title>sql server 键列信息不足或不正确，更新影响到过多的行</title>
  <description><![CDATA[sql&nbsp;server&nbsp;&quot;键列信息不足或不正确，更新影响到过多的行&quot;<br />
<br />因为你的表没有主键或identity列，而你在delete或update操作的时候，有另外的行跟你当前编辑的行一模一样，所以才会出现这样的问题。推荐给表加上identity列，另外要编辑的话，用语句编辑。]]></description>
  <link>http://www.yongfa365.com/Item/557f4ae1be3c890a.html</link>
  <pubDate>Tue, 23 Jan 2007 10:04:00 GMT</pubDate>
</item>
<item>
  <title>MSSQL及ACCESS复制旧表结构到新表结构</title>
  <description><![CDATA[SQL&nbsp;Server复制表结构：右击Oldtable--&gt;所有任务--&gt;生成SQL脚本--&gt;选项--&gt;选中“编写主键、外键、默认值和检查约束脚本”--&gt;设置格式--&gt;只勾选“为每个对象生成CREATE&lt;对象&gt;命令”--&gt;常规--&gt;预览--&gt;然后复制看到SQL语句--&gt;关闭--&gt;单击工具条上的工具--&gt;SQL查询分析器--&gt;粘贴--&gt;修改oldtable为newtable--&gt;然后按F5执行--&gt;完成<br />]]></description>
  <link>http://www.yongfa365.com/Item/MSSQLJiACCESSFuZhiJiuBiaoJieGouDaoXinBiaoJieGou.html</link>
  <pubDate>Sun, 27 Apr 2008 20:23:13 GMT</pubDate>
</item>
<item>
  <title>精品sql语句</title>
  <description><![CDATA[select&nbsp;*&nbsp;from&nbsp;Product&nbsp;where&nbsp;id&lt;&gt;0&nbsp;and&nbsp;categoryid&nbsp;in(select&nbsp;categoryid&nbsp;from&nbsp;product_category&nbsp;where&nbsp;parentid=0&nbsp;order&nbsp;by&nbsp;categoryorder)&nbsp;<br />
<br />
里边的in语句起到了排序的作用<br />
<br />&nbsp;<br />
<br />显示星期几<br />
select&nbsp;d..]]></description>
  <link>http://www.yongfa365.com/Item/766c978c94b3fa5b.html</link>
  <pubDate>Thu, 30 Nov 2006 13:45:00 GMT</pubDate>
</item>
<item>
  <title>[无错版]SQL Server 2000 数据库改名</title>
  <description><![CDATA[以前写过一篇SQL Server 2000 数据库改名，但今天怎么改也不成功，在网上搜索了一下，看了一往篇文章半天才发现，这文章是自己写的，郁闷中，不过修改者已经添加了新的内容，记得名字好像是：SQL Server 2000 数据库彻底改名。正好是我遇到的问题。按他的方法来，还是不成功，与在经过一番试验，终于成功了，其实那人思想是..]]></description>
  <link>http://www.yongfa365.com/Item/SQL-Server-2000-Change-Database-Name-Success-yongfa365.html</link>
  <pubDate>Mon, 13 Nov 2006 23:54:00 GMT</pubDate>
</item>
<item>
  <title>SQL数据库文件备份和还原图片教程</title>
  <description><![CDATA[凡是SQL的服务器端,都需要还原数据库,以下是一个备份和还原数据库的例子<br />
<br />
首先，在&amp;ldquo;企业管理器&amp;rdquo;中右键点击动易的数据库，弹出菜单中选择&amp;ldquo;所有任务/备份数据库&amp;rdquo;&nbsp;<br />
<br />
<br />
<br />
<br />
然后，保持其他选项不变，在&amp;ldquo;目的&amp;rdquo;一项中点击&amp;ldquo;添加&amp;rdquo;：&nbsp;<br />
<br />
<br />
<br />
弹出的菜单中，选择按文..]]></description>
  <link>http://www.yongfa365.com/Item/e54c9cd52bee2c01.html</link>
  <pubDate>Mon, 13 Nov 2006 18:57:00 GMT</pubDate>
</item>
<item>
  <title>[转]ACCESS转SQL Server 注意事项</title>
  <description><![CDATA[　　很多朋友想用SQL2000数据库的编程方法，但是却又苦于自己是学ACCESS的，对SQL只是一点点的了解而已，这里给大家提供以下参考---将ACCESS转化成SQL2000的方法和注意事项<br /><br />　　一，首先，我说的是在ACCESS2000，SQL2000之间转换，其他的我也还没有尝试过，希望大家多多试验，肯定是有办法的；<br /><br />　　二，转换的方法<br />　..]]></description>
  <link>http://www.yongfa365.com/Item/ed114285df17e975.html</link>
  <pubDate>Mon, 30 Oct 2006 10:09:00 GMT</pubDate>
</item>
<item>
  <title>[转]Access 和 SQL Server数据类型的比较</title>
  <description><![CDATA[Access和SQL&nbsp;Server数据类型各有不同，使用脚本进行数据定义时，这些类型说明还是有用。

&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Microsoft&nbsp;Access&nbsp;数据类型
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SQL&nbsp;Server&nbsp;数据类型
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;　Yes/No
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bit
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;　Smallint（字节型）
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;..]]></description>
  <link>http://www.yongfa365.com/Item/d605f20fc5482695.html</link>
  <pubDate>Mon, 30 Oct 2006 10:06:00 GMT</pubDate>
</item>
<item>
  <title>ASP sql 查询 当天 当月 上月 记录</title>
  <description><![CDATA[当天<br /><br /><br /><br /><br />SQL Server:<br /><br /><br />select top 10 * from test where day(dateandtime)=day(getdate())<br /><br />select * from test  where datediff(d,day(dateandtime),day(getdate()))=0<br /><br /><br />Access:<br /><br />select top 10 * from test where day(dateandtime)=day(now())<br /><br />test是表，dateandtime是日期/时间字段<br /><br /><br />上月<br /><br /><br />sel..]]></description>
  <link>http://www.yongfa365.com/Item/dc2773224ff8be73.html</link>
  <pubDate>Fri, 27 Oct 2006 23:42:00 GMT</pubDate>
</item>
<item>
  <title>安装sql server 时， 提示挂起问题</title>
  <description><![CDATA[Windows&nbsp;Registry&nbsp;Editor&nbsp;Version&nbsp;5.00<br />
<br />[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session&nbsp;Manager]<br />
&quot;PendingFileRenameOperations&quot;=-<br />
<br />把以上内容存为&quot;去除挂起.reg&quot;,然后双击这个文件，便可<br />
<br />&nbsp;<br />
<br />总是要进注册表太麻烦了，写个注册表相关项自动删除的reg]]></description>
  <link>http://www.yongfa365.com/Item/f9c17bd8ab0e2a75.html</link>
  <pubDate>Fri, 20 Oct 2006 09:53:00 GMT</pubDate>
</item>
<item>
  <title>SQL--JOIN之完全用法</title>
  <description><![CDATA[外联接。外联接可以是左向外联接、右向外联接或完整外部联接。&nbsp;<br />
在&nbsp;FROM&nbsp;子句中指定外联接时，可以由下列几组关键字中的一组指定：<br />
<br />
LEFT&nbsp;JOIN&nbsp;或&nbsp;LEFT&nbsp;OUTER&nbsp;JOIN。&nbsp;<br />
左向外联接的结果集包括&nbsp;LEFT&nbsp;OUTER&nbsp;子句中指定的左表的所有行，而不仅仅是联接列所匹配的行。如果左表的某行在右表中没有匹配行，则在相关联的结..]]></description>
  <link>http://www.yongfa365.com/Item/45db413f1240ef3c.html</link>
  <pubDate>Sat, 14 Oct 2006 01:56:00 GMT</pubDate>
</item>
<item>
  <title>[转]sqlserver提示“在流水模式下，事务无法启动”的解决办法</title>
  <description><![CDATA[碰到一个很奇怪的问题：我在&nbsp;sqlserver企业管理器打开某个数据库的某个表，修改记录，关闭表就会提示：&amp;ldquo;在流水模式下，事务无法启动<br /><br /><br />解决：<br /><br /><br />在csdn的社区找到答案：拖动右边的滚动条向下,直到显示完所有的数据,再改就没事了<br /><br /><br />&nbsp;]]></description>
  <link>http://www.yongfa365.com/Item/84921efe153e2a91.html</link>
  <pubDate>Fri, 29 Sep 2006 08:10:00 GMT</pubDate>
</item>
</channel></rss>

