请问delphi7中的dbexpress中的SQLQuery怎么样去执行存储过程,同时能得到返回值,谢谢!!
temp1.Close();
temp1.DataSet.CommandText :='declare @ft int '
+'exec bujian_ck_c ''d,''d,@ft output '
+'select @ft';
temp1.Execute;
showmessage(temp1.fields[0].asstring);
temp1.Close();
temp1.DataSet.CommandText :='declare @ft int '
+'exec bujian_ck_c ''d,''d,@ft output '
+'select @ft';
temp1.Execute;
showmessage(temp1.fields[0].asstring);
解决方案 »
- delphi老群招高手 群号:26929954
- FastReport的折行时行间距太拥挤,能不能设置行的间距??
- 关于Chart的X轴做标平均分布问题
- 郁闷至极,问一个及其简单的问题
- DLL中的窗体怎样才能让它显示在页面控件中????
- 网站被黑?大家进来看看http://www.borland.con.cn/
- 怎样写软件的测试方案?在线等待!
- 在此提个问题,请大家进来发言(在线)
- 求教:怎样取得计算机名字?
- 怎样判断,rtf文件中有图像,并且把它提取出来?
- 有谁贴出来TStringGrid的使用方法。怎么设置各个单元格的颜色等设置。
- 为什么在有些字符串在9X中能够正常显示,但在2000中却只能显示一部分
如果用SQLDataSet CommandType选择ctStoredProc
然后SchemaName输入DBO
然后SortFiledNames选择你要的bujian_ck_c
然后Params里面有参数(ParamCheck设置为True)
参数类型可能有问题,你需要手工改变一下。