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. Subagent dbquery and database Sql Server 2012 can't do query

Subagent dbquery and database Sql Server 2012 can't do query

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 39.0k 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.
  • C
    C
    civieroc
    wrote on last edited by
    #1

    Hi, I have version 1.2.16, with the subagent dbquery.nsm and database Sql Server 2012 I can't do query:

    [07-Nov-2014 12:00:26.318] DBQUERY: cannot connect to database db ([Microsoft][O
    DBC Driver Manager] Data source name not found and no default driver specified)
    [07-Nov-2014 12:00:26.318] DBQUERY: Query::poll(queryTEST): no connection handle
     for database db

    in the config file of agent I wrote this:

    SubAgent = dbquery.nsm
    *DBQUERY
    Database = id=db;driver=mssql.ddr;server=myIP;dbname=myDBname;login=mylogin;password=mypassword
    Query = queryTEST:db:15:select * from ......

    I can work only with odbcquery.nsm but It's deprecated and I have other problems...

    Thankyou for all!

    1 Reply Last reply
    0
    • C
      C
      civieroc
      wrote on last edited by
      #2

      I updated to version 17 but nothing, it doesn't work.
      anybody can help me?! 😢 😢 😢

      1 Reply Last reply
      0
      • C
        C
        civieroc
        wrote on last edited by
        #3

        Any update of this please?

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

          Hi,

          yes, it's a bug in mssql.ddr - it cannot work with MS SQL 2012 Native Client. It is already fixed, and agent 2.0-M1 will work correctly. IN the meantime, you can try to install earlier version of MS SQL Native Client (not sure if they can coexist on one machine though).

          Best regards,
          Victor

          1 Reply Last reply
          0
          • C
            C
            civieroc
            wrote on last edited by
            #5

            Yeah It works!

            I installed the Ms SQL 2008 Native Client in another node(for safety not in the same with the 2012 client) and the query works fine!

            I look forward for the 2.0-M1 agent and in the meantime I thankyou!

            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