# Connect direct to database

Follow the instructions below to connect Violet directly to your Teamcenter SQL database.

### Configure access

First, you'll need to configure access to your Teamcenter database server.

<details>

<summary>Option 1: Access via Allow List</summary>

Add the applicable IP addresses to the allow list for your Teamcenter database server:

{% hint style="info" %}
**Violet's IP Addresses**

For **Violet:**

* *Production*: 50.19.87.143
* *Staging*: 34.204.135.202

For **VioletGov**:

* *Production*: 3.31.169.141
* *Staging*: 3.30.99.219
  {% endhint %}

</details>

<details>

<summary>Option 2: Access via VPN</summary>

For added security, we can establish a VPN tunnel. This will connect Violet’s AWS VPC and the network where your Teamcenter server is hosted.&#x20;

We recommend [Tailscale](https://tailscale.com/) VPN, but support any method you require, like IPsec VPN or AWS PrivateLink. More info [here](https://docs.violetlabs.com/resources/administrative/connect-self-hosted-software/vpn-tunnel).

</details>

### Create a SQL user

Next, you'll need to create a read-only SQL user with access to the Teamcenter database (NOT a login to Teamcenter itself). Follow the query below to create the user, then share the credentials with the Violet team to configure this before you connect.

You can securely share credentials with the Violet team on the **Credentials** page.

```
CREATE LOGIN [Violet_Readonly] WITH PASSWORD = 'some-password-of-your-choosing';
USE [tc]; -- Switch to the Teamcenter database, usually called 'tc'
CREATE USER [Violet_Readonly] FOR LOGIN [Violet_Readonly];
EXEC sp_addrolemember 'db_datareader', 'Violet_Readonly';
```

### Connect Teamcenter in Violet

Once network access and database access are complete, you are ready to create the connection in Violet:

1. In [Violet](https://app.violetlabs.com/) (or [VioletGov](https://app.violetgov.com/)), navigate to **Integrations** and click  <img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FtlFf29W81Xw97AUJ5zwb%2FScreenshot%202026-02-19%20at%201.13.34%E2%80%AFPM.png?alt=media&#x26;token=c80f613a-d379-4cd4-a5c8-9c04e63e37ea" alt="" data-size="line"> to add a new integration.&#x20;
2. Select <img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FFxrrZ81rsZ5MhbdFvNpO%2Fteamcenter.png?alt=media&#x26;token=ed10a4ab-13f4-4f05-bd85-ea9db426d31c" alt="" data-size="line">**Teamcenter -  SQL Server**

\[Optional] You can also provide a unique name for the connection based on the credentials you're using, and you can create **restricted permissions** to users or groups:

<figure><img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FLNq8XfPFudyBudwAhJwe%2Fpermissions.png?alt=media&#x26;token=502752e3-2f38-4c8b-8fa0-2ff8b3a5a19a" alt="" width="375"><figcaption></figcaption></figure>

3. Enter the SQL username and password, the server IP address and port, and the Teamcenter database name, then click **Connect.**<br>

   <figure><img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FWDVNtNk4qNZbIWJuhLWK%2FScreenshot%202026-01-12%20at%207.28.23%E2%80%AFPM.png?alt=media&#x26;token=ad8926bb-5243-4a11-8602-23fdf2b1d7df" alt="" width="375"><figcaption></figcaption></figure>

Once your connection is live, you're ready to [set up your Teamcenter integration](https://docs.violetlabs.com/apps/t/teamcenter/setting-up-your-integration).
