User`s guide

2 Getting Started with Database Toolbox
2-36
Step 3. Set up the operating system authentication.
Windows authentication lets you to connect to your database using your Windows user
account. In this case, Windows performs user validation and the database does not
require a different user name and password. Windows authentication facilitates easy
maintenance of database access credentials. After you add the required libraries to the
system path, the Microsoft SQL Server JDBC driver allows connectivity using Windows
authentication. The following steps show how to add these libraries to the Java library
path in MATLAB. For details about Java libraries, see “Bringing Java Classes into
MATLAB Workspace”.
1
Ensure that you have the latest Java driver library installed on your computer. To
install the latest library, see Driver Installation.
2
Run the prefdir command in the Command Window. The output of this command
is a file path to a folder on your computer.