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


Error 16943


Error 16943

Author
Message
Claudine Alves
Claudine Alves
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 1
Hi,

The message 16943 (Could not complete cursor operation because the table schema changed after the cursor was declared) is ocurring many times at the user application.

How to trace it??

Thanks

Claudine
Martin D. Cymerman
Martin D. Cymerman
SSC-Enthusiastic
SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)SSC-Enthusiastic (150 reputation)

Group: General Forum Members
Points: 150 Visits: 17

Have you tried SQL Profiler or Trace Flags?

Marty


BJ Hermsen
BJ Hermsen
SSChasing Mays
SSChasing Mays (605 reputation)SSChasing Mays (605 reputation)SSChasing Mays (605 reputation)SSChasing Mays (605 reputation)SSChasing Mays (605 reputation)SSChasing Mays (605 reputation)SSChasing Mays (605 reputation)SSChasing Mays (605 reputation)

Group: General Forum Members
Points: 605 Visits: 880
A client of ours received this error as well. It was during an optimization. Everything I can find would pin it on teh off chance that the index was dropped for the optimization job after the cursor was prepared but before it executed. We have not seen it again to my knowledge. I beleive it was an off chance rarity. Have you encountered this error often?
Keith -222637
Keith -222637
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 1

Im seeing the same thing, over and over again. Some where on microsoft site I seen that it was an issue with SQL Server 7.0 and the possibility that Service Pack 1 had fixed it.

H.


Boris Erlikhman
Boris Erlikhman
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 1

In my environment the error is reproducable on SQL 2000 SP3 + WS2003 SP1.

During an update of a huge table (100M records) in a loop within a stored procedure the statement

update item_word set realWordID = @realWordID where current of cur_item_word

results in 16943. Also the counter of last updated record is > total number of records in the table being updated.


wcmjunior
wcmjunior
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 6
Hi!

I've got the same error, but in a specific situation as follows:

I had a cursor to a table which I was planning to change a column during the cursor execution. My ALTER TABLE statement was placed some lines after the OPEN CURSOR statement, between the FETCHs and the OPEN CURSOR. Moving the alter table statement to be executed before the OPEN CURSOR solved this problem, but I didn't find a way to change the table during its cursor execution...
gagua
gagua
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 2
Try to use static Keyword. "Declare Cursor Static For"
in my case it worked.
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