HighTechTalks DotNet Forums  

OdbcDataReader works on winXP, not on 2000

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss OdbcDataReader works on winXP, not on 2000 in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Mike Davison
 
Posts: n/a

Default OdbcDataReader works on winXP, not on 2000 - 11-20-2003 , 03:52 PM






I've got a program which works on a Windows XP Pro machine,
but fails on a Windows 2000 Server machine. This matters
for me, since I'd like to be able to develop on a different
computer than the production machine.

As far as I can tell, the .Net and ODBC stuff is identical
(or as identical as I can make it) on both systems.

Using Microsoft.Data.Odbc, the OdbcDataReader seems to
cough and die when it reaches a field which is empty. On
the XP machine, the reader acts fine, spitting out exactly
nothing for those fields which are empty. On the 2000
machine, output stops at the first empty field with the
following message:

"NO_DATA - no error information availale"

Can anyone suggest a direction to look in to fix this?

As an aside, I found a knowledge base article for something
similar (but not a solution):
http://support.microsoft.com/default...b;en-us;319243

Reply With Quote
  #2  
Old   
Neil Allen
 
Posts: n/a

Default Re: OdbcDataReader works on winXP, not on 2000 - 11-21-2003 , 04:29 AM






On Thu, 20 Nov 2003 12:52:06 -0800, "Mike Davison"
<anonymous (AT) discussions (DOT) microsoft.com> wrote:

Quote:
I've got a program which works on a Windows XP Pro machine,
but fails on a Windows 2000 Server machine. This matters
for me, since I'd like to be able to develop on a different
computer than the production machine.

As far as I can tell, the .Net and ODBC stuff is identical
(or as identical as I can make it) on both systems.

Using Microsoft.Data.Odbc, the OdbcDataReader seems to
cough and die when it reaches a field which is empty. On
the XP machine, the reader acts fine, spitting out exactly
nothing for those fields which are empty. On the 2000
machine, output stops at the first empty field with the
following message:

"NO_DATA - no error information availale"

Can anyone suggest a direction to look in to fix this?

As an aside, I found a knowledge base article for something
similar (but not a solution):
http://support.microsoft.com/default...b;en-us;319243

Dear Mike

Have you tried installing the patch on the target Windows 2000 server
following the link...

http://download.microsoft.com/downlo...MDAC27_x86.exe

(it's from the knowledge base article you found).

This fix worked for us.

Alternatively you could use framework version 1.1 and then you have no
need for Microsoft.Data.Odbc (it's replaced by System.Data.Odbc).

Hope this helps

Regards

Neil Allen



Reply With Quote
  #3  
Old   
Mike Davison
 
Posts: n/a

Default Re: OdbcDataReader works on winXP, not on 2000 - 11-24-2003 , 11:28 AM




Quote:
-----Original Message-----
On Thu, 20 Nov 2003 12:52:06 -0800, "Mike Davison"
anonymous (AT) discussions (DOT) microsoft.com> wrote:

I've got a program which works on a Windows XP Pro machine,
but fails on a Windows 2000 Server machine. This matters
for me, since I'd like to be able to develop on a different
computer than the production machine.

As far as I can tell, the .Net and ODBC stuff is identical
(or as identical as I can make it) on both systems.

Using Microsoft.Data.Odbc, the OdbcDataReader seems to
cough and die when it reaches a field which is empty. On
the XP machine, the reader acts fine, spitting out exactly
nothing for those fields which are empty. On the 2000
machine, output stops at the first empty field with the
following message:

"NO_DATA - no error information availale"

Can anyone suggest a direction to look in to fix this?

As an aside, I found a knowledge base article for something
similar (but not a solution):
http://support.microsoft.com/default...b;en-us;319243


Dear Mike

Have you tried installing the patch on the target Windows
2000 server
following the link...

http://download.microsoft.com/downlo...MDAC27_x86.exe

(it's from the knowledge base article you found).

This fix worked for us.

Alternatively you could use framework version 1.1 and then
you have no
need for Microsoft.Data.Odbc (it's replaced by
System.Data.Odbc).

Hope this helps

Regards

Neil Allen

.

Thanks for the reply.

Yes, I attempted to apply the patch, but the system I was
installing it on doesn't have SQL Server, so the install
halted (rightly so).

I'll use System.Data.Odbc and hopefully avoid the issue
entirely.

Thank you again,
Mike Davison


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.