How to change the connection name in Azure Data Studio?
Asked Answered
D

3

6

I noticed that in the context menu of any connection in Azure Data Studio, there is no rename option. Also, you cannot rename the connection in the Dashboard that opens when you click "Manage" in the mentioned above context menu. Is there any way to rename a connection created in Azure Data Studio?

Duntson answered 5/8, 2019 at 7:24 Comment(0)
V
5

Dark Templar's answer works. But you can do it inside of Azure Data Studio by adding New Connection. That opens a sidebar on the right where you can select the connection and change the any of the fields down in Connection Details. Seems like you have to press Connect to save it.

Valma answered 5/11, 2019 at 14:4 Comment(1)
Correct, but only in the case when you know/remember the connection password.Duntson
D
4

Figured out the solution. I'm on Ubuntu, and the file, where the information about connections is stored, is found in: ~/.config/azuredatastudio/User~/settings.json

Just edit the entries located in the "datasource.connections".

Duntson answered 5/8, 2019 at 9:13 Comment(0)
R
1

On Windows 10 it is under the following path:

C:\Users\<User>\AppData\Roaming\azuredatastudio\settings.json
Repatriate answered 19/2, 2021 at 13:40 Comment(1)
Note for Win11 this file is now in: C:\Users\<User>\AppData\Roaming\azuredatastudio\User\settings.jsonLand

© 2022 - 2024 — McMap. All rights reserved.