SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Error: 16955, Severity: 16, State: 2


Error: 16955, Severity: 16, State: 2

Author
Message
marketwiz88
marketwiz88
SSC Veteran
SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)SSC Veteran (202 reputation)

Group: General Forum Members
Points: 202 Visits: 1

My application run fine without problem. When I turn profiler on to trace. I get the following exeption message. Is there a way I can find out what cause it or how to prevent it. I look up on BOL, it seem to be relate to some cursor.

Error: 16955, Severity: 16, State: 2
Error: 16945, Severity: 16, State: 1

These two errors message seem to appear randomly all over the place. Any help on trouble shootinsg this problem will be greatly appreciate it. I am using SQL Server 2000 SP3 on Windows 2000 server.






Site Owners
Site Owners
SSC Guru
SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)SSC Guru (55K reputation)

Group: Administrators
Points: 55383 Visits: 295
No one has responded to this topic yet. Even if you don't have a complete answer, the original poster will appreciate any thoughts you have!
Patrick Dalton
Patrick Dalton
SSC Rookie
SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)

Group: General Forum Members
Points: 27 Visits: 11

This is caused by incorrect params being sent to SQL to open a cursor... check your code and see what type of recordset and what options are being used.

The common cause I have seen is a updatable recordset with SUM(),COUNT(*) etc... when it should be read only

Not a lot of documentation on this, and this is just an example of what I have seen at a customer site.

Hope this helps.

Patrick


Kelly Kramer
Kelly Kramer
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 Visits: 1

I am getting a SQL Server 2000 error:

The following SQL Server error(s) occurred while accessing the MobileUnit_BinLayOver table:

16963,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]You cannot specify scroll locking on a cursor that contains a remote table.
16945,"42000",[Microsoft][ODBC SQL Server Driver][SQL Server]The cursor was not declared.


Please can you shed some light on this.

Thanks
Kelly(UserID=442345)


Antares686
Antares686
SSC Guru
SSC Guru (91K reputation)SSC Guru (91K reputation)SSC Guru (91K reputation)SSC Guru (91K reputation)SSC Guru (91K reputation)SSC Guru (91K reputation)SSC Guru (91K reputation)SSC Guru (91K reputation)

Group: Moderators
Points: 91772 Visits: 803
Sounds like you application is trying to create an invalid cursor for the data on the server side. Does the database you connect to get some data from a remote source, if so you app may need to use a client side cursor to acheive your goal.



Sugesh Kumar
Sugesh Kumar
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23683 Visits: 358
I hope you are using a SCROLL SURSOR remove the scroll keyword and check if the sql executes to success.

Cheers,
Sugeshkumar Rajendran
SQL Server MVP
http://sugeshkr.blogspot.com
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search