Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view

Dear all,

I am trying to connect to a Microsoft SQL Server. I have installed knowage and I have done the following steps:

* I have downloaded the jdbc connector from Microsoft. Inside this packet I have found the following files:

*                 mssql-jdbc-7.2.2.jre8.jar 

                  mssql-jdbc-7.2.2.jre11.jar

I have copied the first one (only this) (mssql-jdbc-7.2.2.jre8.jar) into my knowage lib folder (C:\knowage\Knowage-Server-CE\lib). I have stopped Knowage and re-start it.

After that, I have added a new data base source in knowage:Configuración data source

The SQL Server that I am trying to connect is the following one:

And the database to connect is the following one (JaviTest):

But Test connection shows that configuration is wrong. I have tried also with other URL:

jdbc:sqlserver://CAMBIAR\IPM_GH_SQL;instanceName=SQLEXPRESS;databaseName=JaviTest

But it does not work,

Could someone explain me how the URL should be configured? Is there any step missing?

Thanks in advance

Environment Knowage-6_4_1-CE-Installer-Windows-JVM64bit-20190605
in General Configuration by (140 points)

Please have a look at the SQL Server documentation: https://docs.microsoft.com/it-it/sql/connect/jdbc/building-the-connection-url?view=sql-server-2017

Also check the knowage.log file to see what error is thrown by the server.

2 Answers

0 votes
Dear Jagilo,

Could you try this connection string :

jdbc:sqlserver://CAMBIAR;instanceName=IPM_GH_SQL;databaseName=JaviTest;integratedSecurity=true;

If not working use the full server name or IP adress instead of CAMBIAR

Regards,

Pascal
by (200 points)
0 votes

I just did the first part as a test and it worked, like below.  I hear you as far as this is the first step and took me a day to connect to SQL Server.  Not impressed so far.

jdbc:sqlserver://CAMBIAR

by (200 points)
...