# Cannot connect to a local database

**URL:** <https://forum.uipath.com/t/cannot-connect-to-a-local-database/499042>\
**Category:** Studio\
**Tags:** activities-panel, question, studio, database, activities\
**Created:** [December 14, 2022, 10:01am UTC](https://forum.uipath.com/t/cannot-connect-to-a-local-database/499042 "2022-12-14T10:01:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robot\_robot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/robot_robot/32/263167_2.png) [@robot\_robot](https://forum.uipath.com/u/robot_robot)\
**Post date:** [December 14, 2022, 10:01am UTC](https://forum.uipath.com/t/cannot-connect-to-a-local-database/499042/1 "2022-12-14T10:01:40Z")

</div>

Hello I’m trying to connect to a database just created on my computer but it gives me this error:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/1/c/4/1c42c00b507f32dcc6d7f3064840f5fdffb137e5.png)

I connect to sql server 19 through “Run as administrator” to can access then the sql management studio.

---

<div class="post-metadata">

**Author:** ![Kaviyarasu\_N](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/kaviyarasu_n/32/244106_2.png) [@Kaviyarasu\_N](https://forum.uipath.com/u/Kaviyarasu_N)\
**Post date:** [December 14, 2022, 10:22am UTC](https://forum.uipath.com/t/cannot-connect-to-a-local-database/499042/2 "2022-12-14T10:22:53Z")

</div>

Hi @robot_robot

First, make sure that the database is running and that you have the correct connection information, including the server name, database name, and any authentication details. If you are still having trouble, you can try using the UiPath database connector activities, such as `Connect To Database` and `Execute Query` , to create a connection and run queries against the database.
