# Connecting to sqlserver Database issue

**URL:** <https://community.sonarsource.com/t/connecting-to-sqlserver-database-issue/76070>\
**Category:** SonarQube Server / Community Build\
**Tags:** sonarqube\
**Created:** [November 15, 2022, 11:27am UTC](https://community.sonarsource.com/t/connecting-to-sqlserver-database-issue/76070 "2022-11-15T11:27:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nipadmin](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@nipadmin](https://community.sonarsource.com/u/nipadmin)\
**Post date:** [November 15, 2022, 11:27am UTC](https://community.sonarsource.com/t/connecting-to-sqlserver-database-issue/76070/1 "2022-11-15T11:27:50Z")

</div>

Hi,

I have an issue with connecting Sonarqube to sqlserver DB.

My SonarQube machine details:

Windows server 2019 STD  
SQL server 2019 15.0.2000.5  
SonarQube - Community Edition Version 9.7 (build 61563

I added this lines to the “sonar.properties” file in “conf” folder:  
#sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=xxxxxx  
#sonar.jdbc.username=xxxxx  
#sonar.jdbc.password=

But, when I open the SonarQube web administration I still see the database alert embedded at the bottom.

I will be very happy to solve this.  
Thanks,

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [November 16, 2022, 6:50pm UTC](https://community.sonarsource.com/t/connecting-to-sqlserver-database-issue/76070/2 "2022-11-16T18:50:04Z")

</div>

Hi,

Welcome to the community!

> [@nipadmin](#):
>
> I added this lines to the “sonar.properties” file in “conf” folder:  
> #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=xxxxxx  
> #sonar.jdbc.username=xxxxx  
> #sonar.jdbc.password=

The `#` at the beginning of each line means those lines are commented out. 🙂

&nbsp;  
HTH,  
Ann

---

<div class="post-metadata">

**Author:** ![nipadmin](https://avatars.discourse-cdn.com/v4/letter/n/ba9def/32.png) [@nipadmin](https://community.sonarsource.com/u/nipadmin)\
**Post date:** [November 20, 2022, 12:10pm UTC](https://community.sonarsource.com/t/connecting-to-sqlserver-database-issue/76070/3 "2022-11-20T12:10:04Z")

</div>

Hello **G Ann Campbel** l,  
Thanks for your help, I tried to delete # Symbol and after this change when I run the Java service it is crushed, let me know if necessary more information, logs etc…

 ![SonarQube crush](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/2/a/2a0dab227d3bf6b46dd01d9c727762390ad0a21f.jpeg)

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [November 21, 2022, 2:43pm UTC](https://community.sonarsource.com/t/connecting-to-sqlserver-database-issue/76070/4 "2022-11-21T14:43:31Z")

</div>

Hi,

I don’t see anything out of the ordinary in your screenshot. And I don’t understand what you mean by “the Java service it is crushed”.

If the server isn’t running, you can check your [server logs](https://docs.sonarqube.org/latest/setup/troubleshooting/) for errors. If you find any, feel free to copy/paste _the text_ of the error logs here.

&nbsp;  
Ann
