- 博客(11)
- 资源 (5)
- 收藏
- 关注
原创 重新整理索引信息
create index idx_saleformula_saleno on saleformula(saleno) --查看表所有索引 EXEC sp_helpindex 'saleformula' --重建表的所有索引 DBCC DBREINDEX ('saleformula','') --重建表索引碎片 DBCC INDEXDEFRAG ('shop_zhujiang','s
2013-07-08 16:00:04
511
原创 事物的用法
declare @errcode int set @errcode=1900 --启动事务 declare @tran_point int set @tran_point=@@trancount if @tran_point=0 begin tran tran_yckp_pd else save tran tran_yckp_pd 數
2013-06-25 09:29:41
638
原创 sql数据库日志清除
use master DUMP TRANSACTION 数据库名 WITH NO_LOG BACKUP LOG 数据库名 WITH NO_LOG DBCC SHRINKDATABASE(数据库名,初始大小)
2013-05-22 10:23:00
453
原创 js Html页面控件的获取值
1.//复选框全选 function GetOkAll(checkall) { var grid = document.getElementById('gridPD'); var items = grid.getElementsByTagName("input"); for (i = 0; i
2013-03-12 16:53:52
956
原创 c# 验证码的实现
1.--验证码显示页面 2.后台获取验证码:string yanzhengma = Session["Checkcode"].ToString(); 3.验证码页面: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing;
2013-03-12 16:38:33
566
原创 c#一般处理程序接收参数
1.context.Request.QueryString["RateAmount"].ToString().Trim();获取地址栏里的 2.context.Request.Params["RateAmount"].ToString().Trim();能获取多种类型的(地址栏,cookie),如有重复会报错 3.using System.Web.SessionState; context.S
2013-03-12 16:29:00
4761
原创 c# ajax的简单用法
1.$.post("RxRegister.ashx",{formno:""+formno+""},function(result){ if(result=="1") { } } RxRegister.ashx为一般应用程序页面,result是RxRegister.ashx页面的返回值,formno是需要传到RxRegister.ashx页面的参数 2.用js实现a
2013-03-12 16:16:48
829
原创 c# gridview的几个实用用法
1.CheckBox check = (CheckBox)gridPD.Rows[i].FindControl("chBoxOneAll");获取某行里面的某个控件 2.e.Row.RowType == DataControlRowType.Header 行绑定事件判断是否表头 3.e.Row.RowType == DataControlRowType.DataRow 行绑定事件判
2013-03-12 16:04:10
793
原创 全文索引的使用
sp_fulltext_database 'enable'--启动全文索引 sp_fulltext_catalog 'member_info', 'create'--建立全文索引目录 create unique index pk_memberid on member(memberid) --需要建立唯一索引 sp_fulltext_table 'member','create','mem
2012-12-07 08:59:59
333
原创 查询成绩显示出排名的sql
表test(id,name,grade) 方式一: select name 姓名,grade 分数,(select count(distinct grade) from test where grade>a.grade)+1 as 名次 from test a order by grade desc 方式二: select name 姓名,grade 分数,(select c
2012-11-27 19:06:14
397
原创 数据库优化之一(索引)
SET NOCOUNT ON; DECLARE @objectid int; DECLARE @indexid int; DECLARE @partitioncount bigint; DECLARE @schemaname sysname; DECLARE @objectname sysname; DECLARE @indexname sysname; DECLARE
2012-11-26 09:50:39
245
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅