首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法将SonarQube与SQL server连接。

问无法将SonarQube与SQL server连接。
EN

Stack Overflow用户
提问于 2019-05-01 21:15:51
回答 1查看 192关注 0票数 0

我正在使用sonarQube,并希望连接到sql server db。我运行了以下命令:

代码语言:javascript
复制
 sonar-scanner -D sonar.projectKey=MyProject -D sonar.sources=. -D sonar.jdbc.url=jdbc:sqlserver:localhost;databaseName=sonar;integratedSecurity=true

但我得到以下错误:-

代码语言:javascript
复制
databaseName=sonar : The term 'databaseName=sonar' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify 
that the path is correct and try again.
At line:1 char:241
+ ... -D sonar.jdbc.url=jdbc:sqlserver:localhost;databaseName=sonar;integra ...
+                                                ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (databaseName=sonar:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
EN

回答 1

Stack Overflow用户

发布于 2019-05-01 21:50:53

不要在'define‘(-D)参数后面加空格:

代码语言:javascript
复制
sonar-scanner -Dsonar.projectKey=MyProject -Dsonar.sources=. -Dsonar.jdbc.url=jdbc:sqlserver:localhost;databaseName=sonar;integratedSecurity=true
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55936869

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档