Re: Either BOF or EOF is true . . .




>I am using D5, and TADOStoredProc to open a MSSQL stored procedure that
>fetches a result set from a SQL Server table using a SELECT statement. The
>stored procedure accepts an input parameter, and may return an empty result
>set if it finds no match. My program doesn't care if it gets an empty
>result set - it should just show an empty table - and it doesn't attempt to
>process the result set; it just displays it in a table using a Delphi
>datasource. Everything works as long as I pass in parameters that produce
>records. If I pass in a parameter that produces an empty result set, I get
>an empty table, as expected. However, the next time I open the stored
>procedure (whether I pass in a parameter that should return records or an
>empty result set), I get an exception "Project Outlook.exe 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.' "
>(My program runs as an Outlook addin). Can someone help me understand what
>might be happening, please?

You need to apply the 2nd D5 update for ADO to fix this.
it is due to a change Microsoft made to MDAC 2.6 and higher versions.
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.



Relevant Pages

  • Either BOF or EOF is true . . .
    ... fetches a result set from a SQL Server table using a SELECT statement. ... stored procedure accepts an input parameter, and may return an empty result ... My program doesn't care if it gets an empty ... I get an exception "Project Outlook.exe raised exception ...
    (borland.public.delphi.database.ado)
  • Re: SQL Server + ADO = empty fields
    ... If I run the stored procedure in Query ... I'm using unbound forms and connecting to SQL Server via ADO. ... > I try to fill a recordset with the same stored procedure, ... > back as "empty". ...
    (microsoft.public.sqlserver.programming)
  • Re: Processing speed
    ... > include de-referencing variables and releasing unmanaged resources. ... How about using a stored procedure in the database to empty the tables? ...
    (microsoft.public.dotnet.languages.vb)
  • Text field is empty
    ... Why do you think it's empty? ... when you use SQL Server Enterprise Manager to ... >when the number of characters is larger than 900. ... >In this case have a stored procedure with several input ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Either BOF or EOF is true . . .
    ... With best regards, Mike Shkolnik ... > stored procedure accepts an input parameter, ... My program doesn't care if it gets an empty ... I get an exception "Project Outlook.exe raised ...
    (borland.public.delphi.database.ado)