如何使用连接字符串从soapUI连接到sql数据库?

问题描述:

我想问一个已经尝试从soapUI开源版本连接到SQL数据库的人。如何使用连接字符串从soapUI连接到sql数据库?

我有一个测试步骤JDBC请求,我尝试测试并连接到我的sql数据库。我使用soapUI的开源版本。我读了应该如何设置,但仍然遇到一些问题。

这就是我所做的: 我安装了java 8和jdbc驱动版本4.1。正如在soapUI文档中所述,将jdbc jar文件添加到SoapUi/jre/bin文件夹中。该驱动程序的版本应该与Java 8

工作,然后在驱动领域我写

com.microsoft.sqlserver.jdbc.SQLServerDriver 

在连接字符串:

jdbc:sqlserver://Sservername:portnumber;databaseName=Consumption;username=alyona.kovalyova;password=mypassword 

我得到错误说

Can't get the Connection for specified properties; com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'alyona.kovalyova'. ClientConnectionId... 

我使用我的域名帐户是因为我们公司的政策不允许我们使用数据库用户。正因为如此我试图integratedSecurity参数添加到它应该允许登录字符串以Windows帐户这样的:

jdbc:sqlserver://S23-AS:1433;databaseName=Consumption;integratedSecurity=true 

我也得到错误:

Can't get the Connection for specified properties; com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId.. 

有谁遇到过同样的问题?你能提出一些建议吗?

集成身份验证工作,你将需要sqljdbc_auth.dll库路径环境(32位/ 64位)匹配(把它放进箱子,以及可以帮助已经)

+0

谢谢!它有帮助 –