CENTOS 7 image connecting to SQL Server Database using JDBC Driver RRS feed

  • Question

  • Im working in a sandbox and created a CENTOS 7 Linux image......

    which I have installed a SQL SERVER Software..... I also have installed the JVM and last the JDBC driver to connect to SQL Server Database.....

    I verified permissions and access to the database software by using SQLCMD..... everything looks good.

    I added a CLASSPATH according to article https://docs.microsoft.com/en-us/sql/connect/jdbc/using-the-jdbc-driver?view=sql-server-2017

    for the JDBC driver location....

    I created a application in java with the following class

         lass.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); to define the connection after pass compilation , it errors at run time with the following ClaasNotFoundException com.microsoft.sqlserver.jdbc.SQLServerDriver.

    what exactly did I missed?



    michael john ocasio

    Saturday, March 2, 2019 8:21 PM