Re: mdac 2.8 fails to execute a cursor fetch next when done via oledb (repost)
From: David Gugick (davidg-nospam_at_imceda.com)
Date: 12/13/04
- Next message: David Gugick: "Re: debugging triggers - stored procedures"
- Previous message: Alejandro Mesa: "Re: Order by special records first"
- In reply to: Rudolf Wiener: "mdac 2.8 fails to execute a cursor fetch next when done via oledb (repost)"
- Next in thread: Rudolf Wiener: "Re: mdac 2.8 fails to execute a cursor fetch next when done via oledb (repost)"
- Reply: Rudolf Wiener: "Re: mdac 2.8 fails to execute a cursor fetch next when done via oledb (repost)"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Dec 2004 15:48:55 -0500
Rudolf Wiener wrote:
> I have an SQL script that uses a cursor to update some rows. I loop
> through all the records using 'fetch next from mycursor'.
>
> This works fine when executed in SQL Query Analyzer. When sending the
> very same script via OLEDB to the SQL Server I get an unspecified
> OLEDB error. I could locate the spot where the error occurs the first
> time,
> it's at the 'fetch next'.
>
> I did not test all available MDAC versions. But I succeeded with
> versions 2.6 and 2.7SP1. Version 2.8, the latest one, gives me
> troubles.
>
> Any hints, insights?
>
> TIA
> Rudi Wiener
You'll need to post some of your MDAC code so we can see how you are
executing the SQL statements, etc. How are you sending this information
to the server? Statement by statement? Are you checking @@fetch_status
to make sure it's 0 after each fetch? Why not use a stored procedure for
this?
-- David Gugick Imceda Software www.imceda.com
- Next message: David Gugick: "Re: debugging triggers - stored procedures"
- Previous message: Alejandro Mesa: "Re: Order by special records first"
- In reply to: Rudolf Wiener: "mdac 2.8 fails to execute a cursor fetch next when done via oledb (repost)"
- Next in thread: Rudolf Wiener: "Re: mdac 2.8 fails to execute a cursor fetch next when done via oledb (repost)"
- Reply: Rudolf Wiener: "Re: mdac 2.8 fails to execute a cursor fetch next when done via oledb (repost)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|