<?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[SQL Login failed: Attempting to use an NT account with SQL Server Authentication]]></title><description><![CDATA[<p dir="auto">I'm trying to connect to an MS SQL Server for some application monitoring. This is my agent conf:</p>
<pre><code>SubAgent = dbquery.nsm

*DBQUERY
Database = id=db1;driver=mssql.ddr;server=SQLSERVER;dbname=master;login=DOMAIN\Svc_User;password=secretpassword
Query = ProcessMemory:db1:600:SELECT physical_memory_in_use_kb*1024 AS sql_physical_memory_in_use_MB FROM sys.dm_os_process_memory
</code></pre>
<p dir="auto">This is the error I get in agent log:</p>
<pre><code>DBQUERY: cannot connect to database db1 ([Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'DOMAIN\Svc_User'.)
</code></pre>
<p dir="auto">And this is the error I see in the SQL Server log:</p>
<pre><code>Login failed for user 'DOMAIN\Svc_User'. Reason: Attempting to use an NT account name with SQL Server Authentication. [CLIENT: &lt;local machine&gt;]
</code></pre>
<p dir="auto">The SQL Server is set to "SQL Server and Windows Authentication mode", but I get the feeling nxagent tries to connect using an SQL account rather than an AD account.</p>
<p dir="auto">Is it possible to connect with a domain user or do I have to use a local sql account?</p>
<p dir="auto">(Using nxagent 4.2.461)</p>
]]></description><link>https://forum.netxms.org/topic/7646/sql-login-failed-attempting-to-use-an-nt-account-with-sql-server-authentication</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:39:27 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7646.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Mar 2023 09:24:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQL Login failed: Attempting to use an NT account with SQL Server Authentication on Wed, 26 Apr 2023 12:46:05 GMT]]></title><description><![CDATA[<p dir="auto">You should create local SQL account. It should be also possible to login with the same AD user NetXMS agent runs under (in that case you should specify * as login name and password is not needed). </p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/32394</link><guid isPermaLink="true">https://forum.netxms.org/post/32394</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 26 Apr 2023 12:46:05 GMT</pubDate></item></channel></rss>