<?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 failed]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I want to install NetXMS 2.0 on Windows machine with remote SQL server Standard 2005, but I got the following error(see attachment). Could you please tell me what was done wrong?</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002123-netxms1.JPG" alt="netxms1.JPG" class="img-markdown  img-fluid" width="585" height="502" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002125-nmetxms2.JPG" alt="nmetxms2.JPG" class="img-markdown  img-fluid" width="573" height="497" /></p>
]]></description><link>https://forum.netxms.org/topic/3554/sql-query-failed</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 15:16:22 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3554.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Jan 2015 07:59:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQL query failed on Mon, 26 Jan 2015 10:06:36 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much. Finally I have done it.</p>
]]></description><link>https://forum.netxms.org/post/15798</link><guid isPermaLink="true">https://forum.netxms.org/post/15798</guid><dc:creator><![CDATA[Khushik]]></dc:creator><pubDate>Mon, 26 Jan 2015 10:06:36 GMT</pubDate></item><item><title><![CDATA[Reply to SQL query failed on Thu, 22 Jan 2015 21:03:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you can safely ignores these errors - it just tries to re-create tables that are already exist. Normally it shouldn't happen though. Watch if there will be any other SQL errors.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/15772</link><guid isPermaLink="true">https://forum.netxms.org/post/15772</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 22 Jan 2015 21:03:24 GMT</pubDate></item><item><title><![CDATA[Reply to SQL query failed on Wed, 21 Jan 2015 20:08:22 GMT]]></title><description><![CDATA[<p dir="auto">I have done the instantiation successful. Now when I want to start the service - I got the following error:<br />
[22-Jan-2015 01:02:23.114] Log file opened<br />
[22-Jan-2015 01:02:23.122] [INFO ] Database driver "mssql.ddr" loaded and initialized successfully<br />
[22-Jan-2015 01:02:23.541] [ERROR] SQL query failed (Query = "CREATE TABLE idata_100 (item_id integer not null,idata_timestamp integer not null,idata_value varchar(255) null)"): [Microsoft][SQL Server Native Client 10.0][SQL Server]There is already an object named 'idata_100' in the database.<br />
[22-Jan-2015 01:02:23.542] [ERROR] SQL query failed (Query = "CREATE CLUSTERED INDEX idx_idata_100_id_timestamp ON idata_100(item_id,idata_timestamp)"): [Microsoft][SQL Server Native Client 10.0][SQL Server]The operation failed because an index or statistics with name 'idx_idata_100_id_timestamp' already exists on table 'idata_100'.<br />
[22-Jan-2015 01:02:23.548] [ERROR] SQL query failed (Query = "CREATE TABLE tdata_100 (item_id integer not null,tdata_timestamp integer not null,record_id bigint not null,UNIQUE(record_id))"): [Microsoft][SQL Server Native Client 10.0][SQL Server]There is already an object named 'tdata_100' in the database.<br />
[22-Jan-2015 01:02:23.549] [ERROR] SQL query failed (Query = "CREATE TABLE tdata_records_100 (record_id bigint not null,row_id bigint not null,instance varchar(255) null,PRIMARY KEY(row_id),FOREIGN KEY (record_id) REFERENCES tdata_100(record_id) ON DELETE CASCADE)"): [Microsoft][SQL Server Native Client 10.0][SQL Server]There is already an object named 'tdata_records_100' in the database.<br />
[22-Jan-2015 01:02:23.550] [ERROR] SQL query failed (Query = "CREATE TABLE tdata_rows_100 (row_id bigint not null,column_id integer not null,value varchar(255) null,PRIMARY KEY(row_id,column_id),FOREIGN KEY (row_id) REFERENCES tdata_records_100(row_id) ON DELETE CASCADE)"): [Microsoft][SQL Server Native Client 10.0][SQL Server]There is already an object named 'tdata_rows_100' in the database.<br />
[22-Jan-2015 01:02:23.556] [ERROR] SQL query failed (Query = "CREATE CLUSTERED INDEX idx_tdata_100_id_timestamp ON tdata_100(item_id,tdata_timestamp)"): [Microsoft][SQL Server Native Client 10.0][SQL Server]The operation failed because an index or statistics with name 'idx_tdata_100_id_timestamp' already exists on table 'tdata_100'.<br />
[22-Jan-2015 01:02:23.558] [ERROR] SQL query failed (Query = "CREATE INDEX idx_tdata_rec_100_instance ON tdata_records_100(instance)"): [Microsoft][SQL Server Native Client 10.0][SQL Server]The operation failed because an index or statistics with name 'idx_tdata_rec_100_instance' already exists on table 'tdata_records_100'.<br />
[22-Jan-2015 01:02:23.559] [ERROR] SQL query failed (Query = "CREATE INDEX idx_tdata_rec_100_id ON tdata_records_100(record_id)"): [Microsoft][SQL Server Native Client 10.0][SQL Server]The operation failed because an index or statistics with name 'idx_tdata_rec_100_id' already exists on table 'tdata_records_100'.<br />
[22-Jan-2015 01:02:24.062] [INFO ] Listening for SNMP traps on UDP socket 0.0.0.0:162<br />
[22-Jan-2015 01:02:24.065] [INFO ] Listening for client connections on TCP socket 0.0.0.0:4701<br />
[22-Jan-2015 01:02:24.065] [INFO ] Listening for client connections on TCP socket :::4701<br />
[22-Jan-2015 01:02:24.065] [INFO ] NetXMS Server started<br />
[22-Jan-2015 01:02:24.065] [INFO ] NetXMS Server stopped<br />
[22-Jan-2015 01:02:24.065] [INFO ] Listening for mobile device connections on TCP socket 0.0.0.0:4747<br />
[22-Jan-2015 01:02:24.065] [INFO ] Listening for mobile device connections on TCP socket :::4747</p>
]]></description><link>https://forum.netxms.org/post/15763</link><guid isPermaLink="true">https://forum.netxms.org/post/15763</guid><dc:creator><![CDATA[Khushik]]></dc:creator><pubDate>Wed, 21 Jan 2015 20:08:22 GMT</pubDate></item><item><title><![CDATA[Reply to SQL query failed on Wed, 21 Jan 2015 11:55:05 GMT]]></title><description><![CDATA[<p dir="auto">That's a bug. Filtered indexes (with &quot;WHERE ...&quot; clause) are introduced in SQL Sever 2008.</p>
<p dir="auto"><a href="https://dev.raden.solutions/issues/747" rel="nofollow ugc">https://dev.raden.solutions/issues/747</a></p>
<p dir="auto">As a workaround - uncheck &quot;initialise database&quot;, edit file C:\NetXMS\lib\sql\dbinit_mssql.sql: remove &quot;WHERE ...&quot; part from this &quot;CREATE INDEX&quot; and initialise database by hand:</p>
<ol>
<li>open &quot;cmd&quot; window</li>
<li>cd c:\netxms\bin</li>
<li>nxdbmgr init C:\NetXMS\lib\sql\dbinit_mssql.sql</li>
<li>net start &quot;NetXMS Core&quot;</li>
</ol>
]]></description><link>https://forum.netxms.org/post/15759</link><guid isPermaLink="true">https://forum.netxms.org/post/15759</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Wed, 21 Jan 2015 11:55:05 GMT</pubDate></item><item><title><![CDATA[Reply to SQL query failed on Mon, 19 Jan 2015 16:55:55 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for the quick reply.</p>
<p dir="auto">I have recreated the DB, but now I get the following error:</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000002129-netxms3.JPG" alt="netxms3.JPG" class="img-markdown  img-fluid" width="506" height="427" /></p>
]]></description><link>https://forum.netxms.org/post/15738</link><guid isPermaLink="true">https://forum.netxms.org/post/15738</guid><dc:creator><![CDATA[Khushik]]></dc:creator><pubDate>Mon, 19 Jan 2015 16:55:55 GMT</pubDate></item><item><title><![CDATA[Reply to SQL query failed on Mon, 19 Jan 2015 13:08:56 GMT]]></title><description><![CDATA[<p dir="auto">Check this database (netxms_db) for existing tables. Did you run wizard more than once?</p>
]]></description><link>https://forum.netxms.org/post/15736</link><guid isPermaLink="true">https://forum.netxms.org/post/15736</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 19 Jan 2015 13:08:56 GMT</pubDate></item></channel></rss>