急得生病了。我求您了。我给您跪下了。
这样的存储过程。
CREATE PROCEDURE www
@sun1_1 char(10),
@sun2_1 char(10)
AS
insert into sun
(sun1,sun2)
values
(@sun1_1,@sun2_1)
GO
这样的代码。
procedure TForm1.Button1Click(Sender: TObject);
begin
storedproc1.Active:=false;
storedproc1.DatabaseName:='human';
storedproc1.StoredProcName:='www';
storedproc1.Active:=true;
storedproc1.Close;
storedproc1.Prepare;
storedproc1.ParamByName('@sun1_1').AsString:=edit1.Text;
storedproc1.ParamByName('@sun2_1').AsString:=edit2.Text;
storedproc1.ExecProc;
storedproc1.open;
datasource1.DataSet:=storedproc1;
dbgrid1.DataSource:=datasource1;
end;
运行后提示。
project Project1.exe raised exception class ENoResultSet with
message 'Error creating cursor handle'.
我该怎么办,这是一个很菜的问题。能给我一个清楚的答案吗。不
要敷衍了事。我刚学,帮帮忙吧?
急得生病了。