User`s guide
Database Connection Error Messages
3-11
Vendor Error Message Probable Causes Resolution
Microsoft
SQL
Server or
Sybase
Invalid string or buffer
length.
64-bit ODBC driver
error.
Use a JDBC driver
or the native ODBC
interface instead.
Microsoft
SQL
Server
JDBC Driver Error:
com.microsoft.sqlserver.jdbc.SQLServerDriver.Driver
Not Found/Loaded.
The full path to
the JAR file was
not added to the
javaclasspath.txt
file, or it was
added using the
javaaddpath
command.
Alternatively, the
path to the JAR file is
incorrect.
Ensure that the path
to the JAR file is not
misspelled. Ensure that
you add the path to the
static class path.
Microsoft
SQL
Server
com.microsoft.sqlserver.jdbc.AuthenticationJNI
<clinit> WARNING:
Failed to load the
sqljdbc_auth.dll
The path to the folder
containing the file
sqljdbc_auth.dll
was not added to the
javalibrarypath.txt
file. Or, the full path
to the file was added
instead of the path to
the folder. This error
also occurs when you
add the path to the 64-
bit version of the DLL
using a 32-bit version
of MATLAB, or you
add the path to the 32-
bit version of the DLL
using a 64-bit version of
MATLAB.
Add the path to the
folder containing the file
sqljdbc_auth.dll
to the
javalibrarypath.txt
file. Verify the correct
bitness, 32-bit or 64-
bit, when adding
the path to the
javalibrarypath.txt
file. For details
about configuring a
Microsoft SQL Server
Authenticated Database
Connection, see
“Microsoft SQL Server
JDBC for Windows” on
page 2-33.
Microsoft
SQL
Server
Login failed for user
'DOMAIN\username'.
Either the login
credentials you are
using are incorrect or
your user account does
Ensure that your user
name and password are
correct. Refer to your
system administrator