If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Delphi & Stored Procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-04, 17:40
terminator terminator is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Delphi & Stored Procedure

hi
I have a question:
why when we call a stored procedure in delphi
that the return in Null (Example Not Match data with our Select)
Error occured?
Please help me .
thanks alot.bye.
Reply With Quote
  #2 (permalink)  
Old 01-26-04, 01:14
terminator terminator is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Thumbs up Comment (Please Answer)

hi Dear,
For Example If I have A Storedprocedure in SQL Server2000
that get a one Parameters and Return the result to Show in Grid in Delphi.

CREATE PROCEDURE show @id1 int AS
select * from mytbl where id=@id1

Now If i use this procedure with ADOStoredProc In "ADO Tab" Delphi
with this Format:

ADOStoredProc1.close;
ADOStoredProc1.Parameters.ParamByName('@id1').Valu e :=strtoint(edit1.text);
ADOStoredProc1.Open ;

It works Properly until I never use a ID that There is not in Table.
If I call this Stored Procedure with ID that the result of Select Is NULL,
for the next Time This Error Occured:

"Project raised exception class EOleException with message 'Either BOF or EOF is True,or the current record has been deleted .Requested operation requires a current record'.Process stopped.Use
Step or Run To continue.

If You Have a Sample Program That Work Properly Please Email me.
Thanks alot.
Goodluck.Terminator.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On