<?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 Query with no specific database]]></title><description><![CDATA[<p dir="auto">Hello</p>
<p dir="auto">When polling MS Sql database with agent, what shoud be written in database name as the query is generic and not specific to single database ?</p>
<pre><code>Database = id=db3;driver=mssql.ddr;server=x.x.x.x;dbname=????;login=xxxx;password=xxxxx
Query = query:db3:300:SELECT Count(name) From sys.databases WHERE database_id &gt; 4 AND group_database_id IS not NULL
</code></pre>
]]></description><link>https://forum.netxms.org/topic/6988/sql-query-with-no-specific-database</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:41:58 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6988.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Mar 2021 11:47:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sql Query with no specific database on Tue, 16 Mar 2021 21:42:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you can use any database present on that server then, probably "master" could be a good choice as it always exists.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/29722</link><guid isPermaLink="true">https://forum.netxms.org/post/29722</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 16 Mar 2021 21:42:56 GMT</pubDate></item></channel></rss>