Guest_imported
New member
- Jan 1, 1970
- 0
Hi
I wish to access a stored procedure using ADO in Delphi 6. The stored procedure (sp_getschedule) is written in MS SQL Server and takes one input parameter called @ScheduleDate.
I wrote the following code segment in Delphi to execute the stored procedure:
with frmMain.ADOStoredProc do begin
Active := False;
Parameters.ParamByName('@ScheduleDate').Value := Date;
ProcedureName := 'sp_getschedule';
Open;
Active := True;
end;
When executed, Delphi returns the error:
ADOStoredProc: Parameter '@ScheduleDate' not found
Any suggestions would be greatly appreciated.
-Andrew
I wish to access a stored procedure using ADO in Delphi 6. The stored procedure (sp_getschedule) is written in MS SQL Server and takes one input parameter called @ScheduleDate.
I wrote the following code segment in Delphi to execute the stored procedure:
with frmMain.ADOStoredProc do begin
Active := False;
Parameters.ParamByName('@ScheduleDate').Value := Date;
ProcedureName := 'sp_getschedule';
Open;
Active := True;
end;
When executed, Delphi returns the error:
ADOStoredProc: Parameter '@ScheduleDate' not found
Any suggestions would be greatly appreciated.
-Andrew