Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Upgrade Error from 265 to 266

Upgrade Error from 265 to 266

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 37.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    H
    Luiz A. Camilo
    wrote on last edited by
    #1

    Hi there,

    Yesterday I tried to upgrade to the newest version 1.2.6 from version 1.2.4 ..
    Unfortunatelly the upgrade did not suceed and even trying to install 1.2.4 again, I cannot get the database running again.
    I followed the instructions from these posts, but no success.

    https://www.netxms.org/forum/oe-oo/1-2-4-gt-1-2-5-upgrade-fail/msg9310/#msg9310
    https://www.netxms.org/forum/general-support/netxms-upgrade-to-v1-2-5-mssql-database-upgrade-issue/msg9297/#msg9297

    I deleted my [event_log] table, re-created it and the error is still the same ..
    I really don't have an idea of what's the problem, I don't have much knowledge in SQL ..

    C:\NetXMS\bin>nxdbmgr upgrade -t
    NetXMS Database Manager Version 1.2.6

    Upgrading database...
    Upgrading from version 265 to 266
    >>> CREATE INDEX idx_event_log_root_id ON event_log(root_event_id) WHERE root_event_id > 0
    SQL query failed ([Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near the keyword 'WHERE'.):
    CREATE INDEX idx_event_log_root_id ON event_log(root_event_id) WHERE root_event_id > 0
    Rolling back last stage due to upgrade errors...
    Database upgrade failed

    C:\NetXMS\bin>

    1 Reply Last reply
    0
    • H
      H
      Luiz A. Camilo
      wrote on last edited by
      #2

      Ok, Seems that I found a workaround ...
      I just forced the upgrade .. I don't know how can it impact  ..
      For now, it's working back .

      C:\NetXMS\bin>nxdbmgr upgrade -X
      NetXMS Database Manager Version 1.2.6

      Upgrading database...
      Upgrading from version 265 to 266
      SQL query failed ([Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near the keyword 'WHERE'.):
      CREATE INDEX idx_event_log_root_id ON event_log(root_event_id) WHERE root_event_id > 0
      Upgrading from version 266 to 267
      Upgrading from version 267 to 268
      Upgrading from version 268 to 269
      Upgrading from version 269 to 270
      Upgrading from version 270 to 271
      Database upgrade succeeded

      C:\NetXMS\bin>

      1 Reply Last reply
      0
      • V
        V
        Victor Kirhenshtein
        wrote on last edited by
        #3

        Hi!

        It will work correctly. You can also execute manually

        CREATE INDEX idx_event_log_root_id ON event_log(root_event_id)

        This is a bug in upgrade procedure - it tries to create filtered index, which is a feature new to SQL 2008, so it fails on previous SQL server versions.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • H
          H
          Luiz A. Camilo
          wrote on last edited by
          #4

          Hi Victor,

          Thank you very much !
          It's working now perfectly.  🙂

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups