# Reset SQL Credentials

The below steps are used to reset the SQL username or password

### Steps to Reset SQL Credentials

1. Open a new PowerShell window in elevated mode and navigate to the directory where the  VConnect Tool is present inside VConnect RP VM.
2. Run the following command to update the new Sql credentials.

```
.\VConnect.exe UpdateDatabaseSettings <DBServer Name or Ip>\<Instance Name>,<PortNumber> <VConnectDBName> <DBUsername> <DBPassword> /isUseIntegratedSecurity:false /VConnectApiEndpoint:https://localhost:44305 /VConnectApiUserName:<username> /VConnectApiPassword:<password>
```

<figure><img src="/files/liJDO4yP6vLyoaoDNnny" alt=""><figcaption></figcaption></figure>

3\. Once the above command has succeeded, navigate to 'C:\Program Files\CloudAssertVConnect\CloudAssert.WAP.VConnect.AgentService'.

4\. Run the following command to update the Sql credentials in VConnect Agent Service.

```
.\CloudAssert.WAP.VConnect.AgentService.exe UpdateDatabaseSettings <DBServer Name or Ip>\<Instance Name>,<PortNumber> <VConnectDBName> <DBUsername> <DBPassword> false
```

<figure><img src="/files/IfAZOv6X8AZj3ZOF0Y0J" alt=""><figcaption></figcaption></figure>

The above commands will update the new Sql credential in VConnect database and configuration files successfully.


---

# 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.cloudassert.com/azure-stack-vconnect/installation/reset-sql-credentials.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.
