C++builder调用存储过程

来源:互联网 发布:五星缩水软件安卓版 编辑:程序博客网 时间:2024/05/17 07:14
C++builder调用存储过程,SQLServer2005中的存储过程名为:statisticsContruction,输入参数为:CustomID
    ADOQuery1->Active =false;    ADOQuery1->SQL->Clear();    ADOQuery1->SQL->Text = "exec statisticsContruction :CustomID";    ADOQuery1->Parameters->ParamByName("CustomID")->Value = "300003";    ADOQuery1->Active = true;


0 0
原创粉丝点击