NetXMS Support Forum

English Support => General Support => Topic started by: SteveK on March 15, 2010, 12:58:27 PM

Title: Problems connecting linux to MSSQL 2005
Post by: SteveK on March 15, 2010, 12:58:27 PM
Hi All,

I have been trying to install netxms on debian linux connecting to MSSQL 2005. I can init the database, however when I start netxms deamon, I get the following error:
"Your database has format version 0, but server is compiled for version 99"

Quote[15-Mar-2010 15:59:44] Log file opened
[15-Mar-2010 15:59:44] Platform subagent "/usr/local/lib/libnsm_linux.so" successfully loaded
[15-Mar-2010 15:59:44] Database driver "libnxddr_odbc.so" loaded and initialized successfully
[15-Mar-2010 15:59:44] Your database has format version 0, but server is compiled for version 99

These are the things that I tried:


When I run "nxdbmgr check" I get the following error:
Quote"Unable to determine database syntax"


This is my config file.
QuoteConfiguration file for NetXMS server
#
DBDriver = libnxddr_odbc.so
DBServer = netxms
DBLogin = netxms
DBPassword = PaSsWd
LogFile = /var/log/netxmsd
LogFailedSQLQueries = yes

I have been trying for a while now to get this to work, and would appreciate any insights on this.

Regards   
Title: Re: Problems connecting linux to MSSQL 2005
Post by: jdl on March 15, 2010, 02:52:01 PM
Hi,

Did you do the following while installing your server?


Cheers,
Jdamien
Title: Re: Problems connecting linux to MSSQL 2005
Post by: SteveK on March 15, 2010, 10:47:45 PM
Hi Jdamien,

Thanks for your reply,

QuoteConfiguring root access to mysql:

Is mysql required for microsoft sql server? I didn't install mysql, as I am using ODBC to connect to database. My configure script contained "--with-odbc", and I installed unix odbc package and not mysql as per installation guide

Kind Regards,
Steve..


Title: Re: Problems connecting linux to MSSQL 2005
Post by: Victor Kirhenshtein on March 15, 2010, 11:34:07 PM
Hi!

Do you use FreeTDS ODBC driver for connecting to MS SQL server? It has known problem with UCS-2 encoding, which is used by NetXMS by default. Try to add the following line to your netxmsd.conf:


DBDrvParams = unicode=false


Best regards,
Victor
Title: Re: Problems connecting linux to MSSQL 2005
Post by: SteveK on March 16, 2010, 12:05:12 AM
Hi Victor,

That worked!!

Your help was greatly appreciated.

Thank you.
Steve...