设置ADOStrocedProc的Connection属性或ConnectionString属性,然后在属性procedurename属性中选择一个过程名,要执行就设action属性为true;
解决方案 »
- 怎样获取word中某一行文字,
- 简单问题
- 困扰了很久,关于Tquery和Tupdatesql加事务更新数据库出现阻塞死锁的问题100分求助!!
- 问题解决,高兴,散分
- 高分求救!!!再不解决老板要喊我走人了,在线等待…………………………
- 關於Delphi(ADO)+SQLSERVER中Query或表後台是View的更新!
- 加急!!!!请问如何动态建立 Access(*.mdb) 的odbc数据源(User Dsn)
- 关于控件GifImage的使用问题。。。。〉〉〉〉〉〉〉〉〉〉
- OICQ的开发一二谈!!
- VB菜鸟想学delphi,问几个小问题
- 怎样动态调整屏幕的分辨率
- 怎样得到windows目录
报错
adostoredproc1: commandtext does not return a result set
try
cmd.ConnectionString := ConnStr;
cmd.ProcedureName := 'test1'; //或cmd.ProcedureName := 'test2'
cmd.Parameters.CreateParameter('ido',ftString,pdInput,10,'111');
cmd.Parameters.CreateParameter('id',ftString,pdInput,10,'222');
// cmd.Parameters.CreateParameter('b',ftString,pdOutput,10,'');
cmd.Prepared := true;
cmd.ExecProc;//用cmd.Parameters[2].value接受@b
finally
cmd.Free;
end;
再问一个,我的存储过程名是UDUSER_PROC
但ProcedureName = UDUSER_PROC;1
后面的;1是个什么意思?