Getting Started
:
Connecting Using the DriverManager
Try DataDirect Drivers Now
Connecting Using the DriverManager
One way to connect to a Salesforce instance is through the JDBC
DriverManager
using the
DriverManager.getConnection()
method. As the following example shows, this method specifies a string containing a connection URL.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:sforce://login.salesforce.com;User=abc@defcorp.com;
Password=secret;SecurityToken=XaBARTsLZReM4Px47qPLOS");
In this section:
Passing the Connection URL
Testing the Connection