
SQL Server
文章平均质量分 59
jack86514
软件开发 网站开发
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
charindex VS like in stored procedure on to improve the performance
I have investigate the CHARINDEX differencewith LIKE and do some test, found in my project use the Like is better.Total of the test records: 999999Analysis data as below: declare@Start d原创 2009-01-16 18:04:00 · 631 阅读 · 0 评论 -
retrieve the stored procedure or script execte time and cost source
USE [Brunei-eCustomsDEV]GOdbcc freeproccachego--clear the cache in sql serverset statistics profile onset statistics time onset statistics io ongoDECLARE @return_value int, @p_total_count intEX原创 2009-01-22 16:19:00 · 517 阅读 · 0 评论 -
Create index on View Exception solution
This article from http://www.mssqltips.com/tip.asp?tip=1610Create View Code CREATE VIEW [dbo].[T_IC_USERS_1] WITH SCHEMABINDINGASSELECT U.APP_ID,U.CREATED_BY,U.CREATED_TIME,U.LOWERED_US转载 2009-02-24 14:52:00 · 3544 阅读 · 1 评论 -
聚集索引和非聚集索引,唯一索引和非唯索引的区别
索引类型 根据数据库的功能,可在数据库设计器中创建三种类型的索引 — 唯一索引、主键索引和聚集索引。 提示 尽管唯一索引有助于找到信息,但为了获得最佳性能,建议使用主键约束或唯一约束。 唯一索引 唯一索引不允许两行具有相同的索引值。 主键索引 数据库表通常有一列或原创 2008-12-25 09:54:00 · 5211 阅读 · 0 评论 -
Sql server 中 两种删除语句的性能差别
若要删除表中的所有行,则 TRUNCATE TABLE 语句是一种快速、无日志记录的方法。TRUNCATE TABLE 与不含有 WHERE 子句的 DELETE 语句在功能上相同。但是,TRUNCATE TABLE 速度更快,并且使用更少的系统资源和事务日志资源。与 DELETE 语句相比,TRUNCATE TABLE 具有以下优点:所用的事务日志空间较少。DELETE 语句每次删除一行,并在事原创 2008-12-25 10:38:00 · 4873 阅读 · 0 评论