First, download the SQL JDBC Driver from Microsoft.
- Extract the JDBC drivers somewhere. There’s a series of folders and a Jar file that we’ll be getting.
- Once you’ve downloaded that, open LibreOffice Calc or Writer.
- Go to Options->Advanced
- Click Class Path on the right and choose Add Archive from below:
- Navigate to your file and choose sqljdbc4.jar
- Restart LO and you should be ready to connect.
- Open LO Base
- Choose Connect to an Existing Database, Type is JDBC
- In the Datasource URL:
- sqlserver://ipaddress:1433;databaseName=DBNAMEHERE
- In the JDBC Driver Class:
- com.microsoft.sqlserver.jdbc.SQLServerDriver
- Enter your credentials and test, you should be good to go!