声明1:Dim strCardSN 'e卡序列号
Dim arrSubSN(4) 'e卡子序列号数组
SQL语句为:
Conn.Execute("Insert Into StarParty_CardSN(Card_GroupID,Card_ENA13,Card_SN,Card_Price,
Card_Point,Card_ValidDate,SN1,SN2,SN3,SN4) Values
(1,'1234567890123','strCardSN',200,250,
DateAdd(year,1,GetDate()),'"arrSubSN(1)"',
'"arrSubSN(2)"','"arrSubSN(3)"','"arrSubSN(4)"')")
$cut$
声明2:用Response.Buffer = True打开了缓存,
并每100条记录Response.Flush强制输出缓存数据
采用了动态改变width的bar图片用来显示执行进度
ASP采用For循环向MSSQL插入
1000条数据耗时
PageRunTime:10,226.56000 ms =
10s
插入
10000条数据耗时
PageRunTime:109,929.70000 ms =
109s
插入
50000条数据耗时
PageRunTime:559,015.60000 ms =
559s
当前评分 2.0 , 共有 21 人参与
- Currently 2.047619/5 Stars.
- 1
- 2
- 3
- 4
- 5