上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页
ALTER PROCEDURE [dbo].[P_DeleteRepeatRecord]@siteName varchar(50),@goodsId varchar(20)ASBEGINdeclare @SelectSql varchar(MAX),@tableName varchar(50)set @tableName='goods_price_history_'+@siteNameset @SelectSql='declare my_cursor cursor scroll for select id,goods_price,createDate from ' Read More
posted @ 2012-03-02 14:49 咸鱼公子 Views(377) Comments(1) Diggs(0) Edit
ALTER PROCEDURE [dbo].[P_ComparePrice]@siteName varchar(50),@goodsId varchar(max)ASBEGIN DECLARE @splitChar CHAR(1) DECLARE @IDS VARCHAR(20) SET @splitChar = ',' WHILE(charindex(@SplitChar,@goodsId)<>0)----当分隔符的索引不等于0时 BEGIN SET @IDS=SUBSTRING(@goodsId,1,charindex(@splitChar,@goodsId)- Read More
posted @ 2012-03-02 14:48 咸鱼公子 Views(224) Comments(0) Diggs(0) Edit
createPROCEDURE [dbo].[GetGoodsIDList]@siteID int,@pageSize int,@pageIndex intASBEGINSELECT ID FROM (SELECT ROW_NUMBER() OVER(ORDER BY ID asc) AS NUM,ID FROM goods_products where siteid=@siteID) TBWHERE NUM>=@pageSize*(@pageIndex-1) AND NUM<= @pageSize*@pageIndexEND Read More
posted @ 2012-03-02 14:47 咸鱼公子 Views(174) Comments(0) Diggs(0) Edit
asp.net client端的设置 1、首先修改web.Config文件,加入以下设置: Xml代码 <authenticationmode="Forms"><formsname="casauth"loginUrl="login.aspx"/></authentication><authorization><denyusers="?"/></authorization><authentication mode="Forms&q Read More
posted @ 2012-02-01 12:19 咸鱼公子 Views(2043) Comments(1) Diggs(0) Edit
1:一个接口可以声明多个或者零个成员2:接口的成员必须是方法、属性、事件或者索引器3:接口不能包含常量、字段、运算符、实力构造函数、析构函数或者类型,也不能包含任何种类的静态成员4:所有的接口成员都隐式的具有public访问属性5:接口成员声明中包含任何修饰符都属于编译时错误,具体来说不能使用修饰符:abstruct、public、protected、internal、private、virtual、overried、或者static来声明接口成员using System;interface IDrivingLicenceB{ void getLicence();}interface IDri Read More
posted @ 2012-01-30 16:38 咸鱼公子 Views(337) Comments(0) Diggs(0) Edit
http://www.cnblogs.com/multiplesoftware/archive/2011/02/24/1963371.html Read More
posted @ 2012-01-29 09:56 咸鱼公子 Views(116) Comments(0) Diggs(0) Edit
protected void ReStartApplication() { Thread.Sleep(2000); Process.Start(this.GetType().Assembly.Location); Application.Exit(); } Read More
posted @ 2012-01-18 10:03 咸鱼公子 Views(1215) Comments(0) Diggs(0) Edit
http://hi.baidu.com/jiang_yy_jiang/blog/item/23294013384be4c7f6039e2e.htmlpublic class JPService { public JPService() { //设定最大的Net并发连接数 System.Net.ServicePointManager.DefaultConnectionLimit = 500; ThreadPool.SetMinThreads(15 , 2);//设置最小的工作线程数和IO线程数 Config.Load(); } private int MaxThread = 1... Read More
posted @ 2012-01-18 09:05 咸鱼公子 Views(10231) Comments(0) Diggs(0) Edit
下列语句部分是Mssql语句,不可以在access中使用。SQL分类: DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE) DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT) DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK) 首先,简要介绍基础语句:1、说明:创建数据库CREATE DATABASE database-name 2、说明:删除数据库drop database dbname 3、说明:备份sql server--- 创建 备份数据的 deviceUSE masterEXEC sp_addumpde Read More
posted @ 2012-01-09 15:54 咸鱼公子 Views(5022) Comments(0) Diggs(1) Edit
在一个项目中想实现以上功能,在项目中加入一个 Global.aspx文件即可实现。public class Global : System.Web.HttpApplication { protected void Application_Start(object sender, EventArgs e) { //定义定时器 System.Timers.Timer myTimer = new System.Timers.Timer(5000); myTimer.Elapsed += new ElapsedEventHandler(myTimer_Elapsed); myTimer.Enabl.. Read More
posted @ 2012-01-06 21:27 咸鱼公子 Views(498) Comments(0) Diggs(0) Edit
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 24 下一页