User`s guide

2 Getting Started with Database Toolbox
2-42
connection. If you want to close Database Explorer and all database connections,
click the Close button ( ) in the top-right corner.
If Database Explorer is docked, click the Close button ( ) to close all database
connections and Database Explorer.
Connect to Microsoft SQL Server using the JDBC connection command line.
When using the command line, you do not have to set up a data source with Database
Explorer. You can use the command line to pass all the required parameters for
connection.
1
To connect with operating system authentication, use the Vendor name-value
pair argument of database to specify a connection to a Microsoft SQL Server
database. Use the AuthType name-value pair argument to connect with Windows
authentication. Specify a blank user name and password. For example, the following
code assumes you are connecting to a database named dbname, database server
named sname, and port number 123456.
conn = database('dbname','','','Vendor','Microsoft SQL Server',...
'Server','sname','AuthType','Windows',...
'PortNumber',123456);
Or, to connect without operating system authentication, use the AuthType name-
value pair argument of database to specify a connection to the database server