# testconnection

### Tests a connection to Source and Database <a href="#testconnection-testsaconnectiontosourceanddatabase" id="testconnection-testsaconnectiontosourceanddatabase"></a>

#### Usage <a href="#testconnection-usage" id="testconnection-usage"></a>

| `admin(.bat or .sh) testconnection <<profilename>> <<type>>` |
| ------------------------------------------------------------ |

profilename: Name of the profile that you wish to test

type: "source" or "database" (Source can be - "salesforce" or "mscrm")

**Example**

Validate Salesforce and Microsoft CRM connection on source setup tab in "myprofile" and click on Test connection to connect.

| `Linux./admin.sh testconnection myprofile salesforce./admin.sh testconnection myprofile mscrm`  `Windowsadmin.bat testconnection myprofile salesforceadmin.bat testconnection myprofile mscrm` |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

Tests the connection to a Database as setup in "myprofile"

| `Linux./admin.sh testconnection myprofile database`  `Windowsadmin.bat testconnection myprofile database` |
| --------------------------------------------------------------------------------------------------------- |

<br>

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mydbsync.com/cloud-replication-main/v7/utilities/command-line/testconnection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
