skip to main content
DataDirect Connect XE Drivers : Salesforce Driver : Connection URL
  
Connection URL
Syntax

jdbc:datadirect:sforce:[//ServerName[;property=value[;...]]SecurityToken=value
where:
ServerName
is the URL of the Salesforce instance to connect to, for example, login.salesforce.com or test.salesforce.com. If you do not specify ServerName, login.salesforce.com is used as the value.
property=value
specifies connection properties. For a list of connection properties and their valid values, see Connection Properties.
Example
This example specifies the Salesforce instance test.salesforce.com. The driver attempts to establish a connection to the test sandbox for the user test@abccorp.com:

jdbc:datadirect:sforce://test.salesforce.com;User=test@abccorp.com;
Password=secret
Example
This example does not specify a Salesforce instance; therefore, login.salesforce.com is used as the instance:

jdbc:datadirect:sforce:User=test;Password=secret
Note: User and Password are required properties, but they do not have to be specified in the connection URL. They can be specified as arguments to the Connection.getConnection() method.