Unix Technical Forum

Either BOF or EOF is true

This is a discussion on Either BOF or EOF is true within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> Is there a way to set the ODBC driver for SQL server or SQL server to return this error ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:34 PM
richard
 
Posts: n/a
Default Either BOF or EOF is true

Is there a way to set the ODBC driver for SQL server or SQL server to
return this error message when trying to navigate on an empty database
table.

I have one site running Sybase 11 that allways returns this message,
whereas I develop on SQL Server that doesn't. I have tried to find all
the places where the error is triggered, but as I can't duplicate the
error in development it is not very accurate.

TIA

Richard

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:34 PM
Werner Huysmans
 
Posts: n/a
Default Re: Either BOF or EOF is true

I think that checking BOF=True AND EOF=True indicates an empty database ?

"richard" <richard+agent@maninfodotcodotuk> wrote in message
news:gdi4qvgje1dosolltsgf10rb285ag0546n@4ax.com...
> Is there a way to set the ODBC driver for SQL server or SQL server to
> return this error message when trying to navigate on an empty database
> table.
>
> I have one site running Sybase 11 that allways returns this message,
> whereas I develop on SQL Server that doesn't. I have tried to find all
> the places where the error is triggered, but as I can't duplicate the
> error in development it is not very accurate.
>
> TIA
>
> Richard
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 08:35 PM
richard
 
Posts: n/a
Default Re: Either BOF or EOF is true

On Sun, 2 Nov 2003 11:25:16 +0100, "Werner Huysmans"
<sky38071@skynet.be> wrote:

>I think that checking BOF=True AND EOF=True indicates an empty database ?


That's right, SQL Server and Sybase respond differently when you try
and navigate through an empty table using MS-DAC. Sybase throws an
exception and SQL Server doesn't.

>
>"richard" <richard+agent@maninfodotcodotuk> wrote in message
>news:gdi4qvgje1dosolltsgf10rb285ag0546n@4ax.com.. .
>> Is there a way to set the ODBC driver for SQL server or SQL server to
>> return this error message when trying to navigate on an empty database
>> table.
>>
>> I have one site running Sybase 11 that allways returns this message,
>> whereas I develop on SQL Server that doesn't. I have tried to find all
>> the places where the error is triggered, but as I can't duplicate the
>> error in development it is not very accurate.
>>
>> TIA
>>
>> Richard
>>

>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:54 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com