delphi 2009 SQLStoredProc执行错误说没参数?
SQLStoredProc.StoredProcName:='[dbo].[UpDIMS]';
SQLStoredProc.ParamByName('@Mindex').AsInteger:=mInfo.Mindex;
SQLStoredProc.ParamByName('@Longitude').AsInteger:=mInfo.Longitude;
SQLStoredProc.ParamByName('@Latitude').AsInteger:=mInfo.Latitude;
SQLStoredProc.ParamByName('@Angle').AsInteger:=mInfo.Angle;
SQLStoredProc.ParamByName('@Speed').AsInteger:=mInfo.Speed;
SQLStoredProc.ParamByName('@Time').AsInteger:=mInfo.Time;
SQLStoredProc.ExecProc;
存储过程如下:
ALTER PROCEDURE [dbo].[UpDIMS]
-- Add the parameters for the stored procedure here
@Mindex int,
@Longitude int,
@Latitude int,
@Angle int,
@Speed int,
@Time datetime
AS
BEGIN
--判断db_info中是否存在记录
if(select count(*)
from db_info where Mindex=@Mindex)>0
update db_info set Longitude=@Longitude,Latitude=@Latitude,Speed=@Speed,Angle=@Angle,[Time]=@Time where Mindex=@Mindex
else
insert into db_info values(@Mindex,@Longitude,@Latitude,@Speed,@Angle,@Time)
insert into db_info_his values(@Mindex,@Longitude,@Latitude,@Speed,
相关问答:
一般都是怎么接活的?
收入怎么样
sohu?soho?
sohu 可能是small office house unit
小办公室,把家变成单位。
去威客网啊,很多个呢,还有外包的网站
学习学习。
现在Delphi做东西不行了,处于淘汰状 ......
我在出库窗口写了个方法:ADOQueryBill 的bNum 字段的OnValidate方法 实现的是出库数量不能大于入库的数量,否则就重新输入数量,以下是我的代码:
procedure TFrmStockOut.ADOQueryBillbNum_Validate(Sender: TFie ......
我在网上找了个关于IEBHO的代码,然后按照哪个设置了,后来运行的时候出现
构建
[警告] Project2.dpr(14): File not found: 'MYbho.TLB'
[警告] Project2.dpr(16): File not found: 'MYbho.RES'
......
IF THEN ELSE中多个条件怎么写,如:字符串S1,S2,S3,S4均要不为空。
怎么样把它写到IF中去?
请各位帮帮忙,谢谢!
if (S1<>'') and (S2<>'') and (S3<>'') and (S4<>'') then
begin ......
delphi如何获取网页的返回状态,就像浏览器中返回的http 500错误,404错误等
另外能不能获取到打开一个网页的反应时间,可以大致参考网页打开的速度
谢谢!
都可以实现的,具体的你还是查资料吧!
自己 ......