<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unable to query SQL Server 2016 using dbquery.nsm]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I try to query some data from an MS SQL Server 2016, but can't get it working.</p>
<p dir="auto">My Agent config (xxx means confidential):</p>
<p dir="auto">MasterServers = xxx<br />
ConfigIncludeDir = D:\Program Files\NetXMSAgent\etc\nxagentd.conf.d<br />
LogFile = D:\Program Files\NetXMS\log\agent.log<br />
DebugLevel = 4<br />
FileStore = D:\Program Files\NetXMSAgent\var<br />
SubAgent = filemgr.nsm<br />
SubAgent = ping.nsm<br />
SubAgent = logwatch.nsm<br />
SubAgent = winperf.nsm<br />
SubAgent = wmi.nsm<br />
SubAgent = dbquery.nsm</p>
<p dir="auto">ExecTimeout=60000<br />
ExternalParameterShellExec=Custom.EBGroupUsers:net localgroup "Engineering Base" | find /c "\"</p>
<p dir="auto">*DBQUERY<br />
Database = id=db1;driver=mssql.ddr;server=xxx(IP ADDRESS);dbname=master;login=xxx;password=xxx<br />
Query = SQL.RecoverModel:db1:600:SELECT Count(name) FROM sys.databases WHERE recovery_model&lt;&gt;3 and name not in ('msdb','model','master')</p>
<p dir="auto">I'm sure username and password works.</p>
<p dir="auto">In the agent log I get:</p>
<p dir="auto">DBQUERY: cannot connect to database db1 ([Microsoft][SQL Server Native Client 11.0]Named Pipes Provider: Could not open a connection to SQL Server [2]. )<br />
DBQUERY: H_DirectQueryConfigurable: no connection handle for database db1</p>
<p dir="auto">Named Pipes and TCP/IP is enabled in configuration manager.</p>
<p dir="auto">I use NetXMS Version 3.2.380</p>
<p dir="auto">Best regards</p>
<p dir="auto">Stefan</p>
]]></description><link>https://forum.netxms.org/topic/6551/unable-to-query-sql-server-2016-using-dbquery.nsm</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:10:26 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6551.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 May 2020 11:40:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unable to query SQL Server 2016 using dbquery.nsm on Thu, 29 Oct 2020 14:51:46 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the follow up</p>
]]></description><link>https://forum.netxms.org/post/28778</link><guid isPermaLink="true">https://forum.netxms.org/post/28778</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Thu, 29 Oct 2020 14:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to query SQL Server 2016 using dbquery.nsm on Thu, 29 Oct 2020 12:57:19 GMT]]></title><description><![CDATA[<p dir="auto">I finally found the problem. Man, I'm so stupid. I forgot to add the instance name after the servername in the agent config ::)</p>
]]></description><link>https://forum.netxms.org/post/28777</link><guid isPermaLink="true">https://forum.netxms.org/post/28777</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Thu, 29 Oct 2020 12:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to query SQL Server 2016 using dbquery.nsm on Wed, 01 Jul 2020 06:36:27 GMT]]></title><description><![CDATA[<p dir="auto">I still have this problem. Is there a way to get more information to find out where the problem is?</p>
]]></description><link>https://forum.netxms.org/post/28144</link><guid isPermaLink="true">https://forum.netxms.org/post/28144</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Wed, 01 Jul 2020 06:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to query SQL Server 2016 using dbquery.nsm on Tue, 16 Jun 2020 07:39:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I'm back from vacation now and checked the configuration again.<br />
TCP/IP is enabled for Native Client 32bit and 64bit. (see screenshots)<br />
Is there anything I could test?</p>
<p dir="auto">Best regards</p>
<p dir="auto">Stefan</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005187-2020-06-16_09_34_35-Window.png" alt="2020-06-16 09_34_35-Window.png" class="img-markdown  img-fluid" width="634" height="196" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005189-2020-06-16_09_34_59-Window.png" alt="2020-06-16 09_34_59-Window.png" class="img-markdown  img-fluid" width="629" height="207" /></p>
]]></description><link>https://forum.netxms.org/post/28065</link><guid isPermaLink="true">https://forum.netxms.org/post/28065</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Tue, 16 Jun 2020 07:39:28 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to query SQL Server 2016 using dbquery.nsm on Tue, 02 Jun 2020 13:38:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">I will check this, when I'm back from vacation in two weeks.</p>
<p dir="auto">Regards</p>
<p dir="auto">Stefan</p>
]]></description><link>https://forum.netxms.org/post/27994</link><guid isPermaLink="true">https://forum.netxms.org/post/27994</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Tue, 02 Jun 2020 13:38:54 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to query SQL Server 2016 using dbquery.nsm on Tue, 02 Jun 2020 12:32:01 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I did some testing on my system, and I can get this error if TCP/IP is disabled in native client configuration. Check "Client Protocols" section under "SQL Native Client 11.0 Configuration" in "SQL Server Configuration Manager".</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27993</link><guid isPermaLink="true">https://forum.netxms.org/post/27993</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 02 Jun 2020 12:32:01 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to query SQL Server 2016 using dbquery.nsm on Wed, 27 May 2020 09:30:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I think You mean "Mixed Mode Authentication" in SQL Server? This is enabled. Password only uses upper and lowercase chars with some numbers.<br />
Checking the SQL server logs shows that there is no try to login from the login used by the agent.<br />
Very strange.</p>
<p dir="auto">Do You have more ideas?</p>
<p dir="auto">Regards</p>
<p dir="auto">Stefan</p>
]]></description><link>https://forum.netxms.org/post/27977</link><guid isPermaLink="true">https://forum.netxms.org/post/27977</guid><dc:creator><![CDATA[stoffmann]]></dc:creator><pubDate>Wed, 27 May 2020 09:30:23 GMT</pubDate></item><item><title><![CDATA[Reply to Unable to query SQL Server 2016 using dbquery.nsm on Wed, 27 May 2020 04:38:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">configuration looks good. Is hybrid authentication enabled? Also, could it be that password contains some characters that could be misinterpreted (like: ; # ' ")?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27972</link><guid isPermaLink="true">https://forum.netxms.org/post/27972</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 27 May 2020 04:38:13 GMT</pubDate></item></channel></rss>