Re: How to use server side cursors?
- From: "Angel Saenz-Badillos[MS]" <angelsa@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 17 Mar 2006 12:24:05 -0800
We are actively working on this issue. I will post here as soon as I hear
more.
Thank you,
Angel
--
Angel Saenz-Badillos [MS] DataWorks
This posting is provided "AS IS", with no warranties, and confers no
rights.Please do not send email directly to this alias.
This alias is for newsgroup purposes only.
I am now blogging: http://weblogs.asp.net/angelsb/
"Mark" <Mark@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1E035388-E550-4CBF-A7AD-09C52C1B0F0B@xxxxxxxxxxxxxxxx
With SQL Server 2000 and the previous jdbc driver, we used the
SelectMethod=cursor on the jdbc url and everything worked fine. We
upgraded
to SQL Server 2005 and the new jdbc driver (sqljdbc.jar) and have run into
problems where using the SelectMethod=cursor causes batch updates to fail
with the following:
Exception: com.microsoft.sqlserver.jdbc.SQLServerException:
sp_cursoropen/sp_cursorprepare: The statement parameter can only be a
single
select or a single stored procedure.
If we remove the SelectMethod=cursor we get the jdbc client running out of
memory when we query large tables with the following exception:
The system is out of memory. Use server side cursors for large resultsets
So how can we use server side cursors with the new driver and still have
batch updates working? Is there another way to enable server side cursors?
.
- Follow-Ups:
- Re: How to use server side cursors?
- From: David Olix
- Re: How to use server side cursors?
- Prev by Date: Re: TCP/IP Connection - Can only connect to the 'Dynamic Port'
- Next by Date: Re: Running out of network ports
- Previous by thread: Re: Batch inserts dont work with PreparedStatement and selectMetho
- Next by thread: Re: How to use server side cursors?
- Index(es):
Relevant Pages
|