Connect pentaho 9.1 to Azure SQL Server - sql-server

I'm trying to connect to pentaho 9.1 to Azure SQL Server in Windows desktop Environment and I'm receiving the following error message:
Driver class 'net.sourceforge.jtds.jdbc.Driver' could not be found, make sure the 'MS SQL Server' driver (jar file) is installed.
net.sourceforge.jtds.jdbc.Driver
I've already downloaded JDBC driver from Microsoft and copy mssql-jdbc-9.2.0.jre8 to lib path or mssql-jdbc-9.2.0.jre11 to lib path as well. I already did copy mssql-jdbc_auth-9.2.0.x64.dll to \libswt\win64.
Some idea of what should I do?

I got !
just download the driver from https://sourceforge.net/projects/jtds/files/
Answer's source - https://forums.pentaho.com/threads/217129-How-to-connect-PDI-with-MS-SQL-Server-2016/

Related

SQL SERVER: Accessing Cosmos-Db in SSMS via ODBC

I'm attempting to follow the guide here which shows how to link an azure cosmos-db as a linked server via ODBC. I have created the ODBC links to the remote cosmos-db in both x64 and x86 flavours. These appear to connect without issue when checking from within the ODBC Admin console and I can even see the data when setting up a schema, however I am unable to create a working linked server as I get the following error when testing the connection ..
"[microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
I Believe this is maybe because I have SQL Express installed and the "Providers" folder is missing from the "Linked Server" folder. I am therefore assuming that I do not have the necessary providers installed on the SQL Server Instance running locally.
I have attempted to install both the OLE DB Driver and the ODBC Driver, however these have not helped.

Java SQL Server 2014 Cannot open database error

(not same case as: Java SQL Server 2012 Cannot open database error)
I have an environment running iReport 4.7.1, and I connect it to SQL Server 2014 using the driver from JBoss 6 lib folder: sqljdbc4.jar.
This same driver, on the same porto (1433) is not working to connect Eclipse Mars2 64bits to SQL Server.
When creating the driver I did select "Microsoft SQL Server 2008 JDBC Driver" (the most recent on the list), but I hope this is only a name, as I selected the jar I'm successfully using to connect iReport (sqljdbc4.jar).
I got
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open database
"databaseName=MY_DB" requested by the login. The login failed.
My Connection URL is the same that's working on iReport:
jdbc:sqlserver://localhost:1433;databaseName=databaseName=MY_DB
Also, Eclipse is running under Java 8, and iReport under Java 6, but I believe this is not the issue.
Any idea what's wrong?
Your connection URL sets "databaseName=" twice. Try changing it to:
jdbc:sqlserver://localhost:1433;databaseName=MY_DB

DreamFactory remote SQL Service: Failed to launch service “servicename” :CDbConnection failed to open the DB connection

I have installed Bitnami DreamFactory WAMP Stack on windows
server 2008 R2. I am unable to connect to a MS SQL DB through a service
in Dream Factory. The error message I get is “Failed to launch service
“servicename”: CDbConnection failed to open the DB connection”
I have tried everything that is mentioned over here: http://community.dreamfactory.com/t/connecting-to-ms-sql-server/163
Eagerly awaiting help.
Native ODBC Driver 11 for SQL Server must be installed for the PHP extensions to connect MS SQL DB.
I recommend referring to the DreamFactory documentation for all drivers and modules necessary in Windows for SQL Server connections. Depending on your environment, you may need to install more than just the ODBC Driver 11. Bitnami cannot package and distribute the Microsoft drivers.

Migrating to SQL Server in TeamCity: A driver for the source database not found

I'm trying to move my TeamCity instance to SQL Server. I followed the instructions in the docs for Setting up an External Database.
Now I'm going through Migrating to an External Database and running the maintainDb command:
.\maintainDB.cmd migrate -A c:\users\jkodroff\.buildserver -T C:\Users\jkodroff\.BuildServer\config\database.properties
And I get this output:
Java executable is found: 'C:\Program Files\Java\jdk1.6.0_35\bin\java.exe'.
Using logs directory C:\TeamCity\logs
TeamCity maintenance tool. Copyright 2013 JetBrains s.r.o. All Rights Reserved.
Command line arguments: migrate -A c:\users\jkodroff\.buildserver -T C:\Users\jkodroff\.BuildServer\config\database.properties
Using TeamCity data directory: C:\Users\jkodroff\.BuildServer
Using database settings from the TeamCity data directory for source database: C:\Users\jkodroff\.BuildServer\config\database.properties
Using source database
database type: MSSQL
connection string: jdbc:jtds:sqlserver://localhost:1433/teamcity
Cannot proceed with 'migrate' command: A driver for the source database not found. Please ensure you have driver jars in C:\Users\jkodroff\.BuildServer\lib\jdbc.
Critical error has occurred during command execution.
I've verified that both sqljdbc.jar and sqljdbc4.jar are in the directory indicated, so what gives?
The fact that you have sqljdbc.jar and sqljdbc4.jar indicates that you are using the Microsoft SQL Server JDBC Driver, but the connection string is for the jTDS driver. Make sure you use the correct connection string for the Microsoft SQL Server JDBC or that you use the jTDS JDBC driver instead.
Second: you should use either sqljdbc.jar (which is for Java 5) or sqljdbc4.jar (which is for Java 6 and later), not both; loading both might lead to unexpected behavior due to classloading order etc!

Error Running Sonar connected to SQL Server 2005. SONAR.dbo.rules for column description

When I start Sonar (StartSonar.bat), I get the following error in the log file.
Wrong column type in SONAR.dbo.rules for column description.
Found: ntext, expected: nvarchar(max)
Looking at the column in SQL Server Management Studio it is nvarchar(max)
I'm running:
DB: SQL Server 2005
OS: Windows 7 64 bit
Sonar: 2.11
Tried these drivers:
sqljdbc-1.2.2828.100.jar
sqljdbc4.jar (Microsoft SQL Server JDBC Driver 2.0)
sqljdbc4.jar (Microsoft SQL Server JDBC Driver 3.0)
sqljdbc4.jar (Microsoft SQL Server JDBC Driver 4.0)
My MSSQL Properties:
sonar.jdbc.url: jdbc:sqlserver://localhost;databaseName=SONAR;
sonar.jdbc.driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
sonar.jdbc.validationQuery: select 1
sonar.jdbc.dialect: mssql
I'm using a user name and password (SQL Authentication) to connect the DB
Note to self: When trying to connect to MSSQL remember to Enable TCP/IP. This is found in the SQL Sever Configuration Manager;SQL Server 2005 Network Configuration;Protocols for MSSQLSERVER;TCP/IP
I thought it might be a driver issue, but I'm not sure
Anyone else seen this?
I wasn't able to solve this via the sqljdbc drivers so I took some advise from another post and fell back to the jTDS driver http://jtds.sourceforge.net/index.html
The post I used was Sonar MsSql Database Issue
My Setup:
Sonar 2.11 unzipped to C:\Sonar\sonar-2.11
The steps I made (paraphrased)
Download jTDS drivers from jTDS Drivers Unzip it somewhere, I suggest C:\jDST
Add the DLL to the system path. (C:\jDST\jtds-1.2.5-dist\x64\SSO)
Copy the jar file (C:\jDST\jtds-1.2.5-dist\jtds-1.2.5.jar) to the extensions folder
(C:\Sonar\sonar-2.11\extensions\jdbc-driver\mssql)
Update the sonar.properties
sonar.jdbc.url: jdbc:jtds:sqlserver://localhost:1433/SONAR
sonar.jdbc.driverClassName: net.sourceforge.jtds.jdbc.Driver
sonar.jdbc.validationQuery: select 1
sonar.jdbc.dialect: mssql
Note: in case you connect to the named instance, this must be specified explicitly in the connection URL: jdbc:jtds:sqlserver://localhost/SONAR;instance=SQLEXPRESS
Run the bat file StartSonar.bat (C:\Sonar\sonar-2.11\bin\windows-x86-64\StartSonar.bat)
Check your logs and go to the site http:// localhost:9000

Resources