Exception repeately occurring

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pondy

    Exception repeately occurring

    Hi

    I have a strange problem with my SQL server 2k instllation - every 10
    mintutes when I have the Profiler trace with the entire "Errors" Event
    category selected, the following 5 exceptions show up in the trace and
    that too for the same SPID.

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

    I have no clue why this is occurring - I tried running a trace with the
    SP:StmtComplete d event on, but no other stored procedures show up with
    the same spid close to the time where this exception is logged.

    Does anyone have a clue as to why this error is occurring ?

    Rahul

  • Erland Sommarskog

    #2
    Re: Exception repeately occurring

    Pondy (fd96121@yahoo. com) writes:[color=blue]
    > I have a strange problem with my SQL server 2k instllation - every 10
    > mintutes when I have the Profiler trace with the entire "Errors" Event
    > category selected, the following 5 exceptions show up in the trace and
    > that too for the same SPID.
    >
    > Error: 16955, Severity: 16, State: 2
    > Error: 16945, Severity: 16, State: 1
    > Error: 16955, Severity: 16, State: 2
    > Error: 16945, Severity: 16, State: 1
    > Error: 16955, Severity: 16, State: 2
    > Error: 16945, Severity: 16, State: 1
    >
    > I have no clue why this is occurring - I tried running a trace with the
    > SP:StmtComplete d event on, but no other stored procedures show up with
    > the same spid close to the time where this exception is logged.[/color]

    So what you in a such situation like this is this:

    select * from master..sysmess ages where error in (16955, 16945)

    You could also have looked up the errors in Books Online, by simply
    searching for them. This could give you the bonus that there might be
    entire topic to troubleshoot the problem. I would not expect that in
    this case, though.

    These are the messages:

    16945 The cursor was not declared.
    16955 Could not create an acceptable cursor.

    I would guess that 16945 is a consequence of 16955.

    Apparently there is some code out there where the cursor declaration
    fails, and where there is no error handling, so that execution continues.
    Note that this may not have to be a stored procedure. Hypothetically
    it could be a server-side cursor initiated by some client API as well.

    In any case, it's a problem specific to that process, and it is not that
    your server is about to go belly-up.

    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server SP3 at
    Get the flexibility you need to use integrated solutions, apps, and innovations in technology with your data, wherever it lives—in the cloud, on-premises, or at the edge.

    Comment

    Working...