如何从iccube生成器访问SQL Server数据库

时间:2018-10-03 13:02:08

标签: iccube

我试图从iccube Web UI连接到SQL Server,但是当我像这样建立数据源连接时

Name: TestDataBase
DriverType: SQL Server
ServerName: localhost
DB Name: TestDataBase

User: MyWindowsUserName
Password: ********** 

(我的Windows用户名和密码)。

,出现以下错误:

JDBC connection for url 'jdbc:sqlserver://localhost:1433;databaseName=TestDataBase;' and user 'MyWindowsUsername' cannot be created due to error 'Login failed for user 'MyWindowsUsername'.

我缺少什么,我可以以某种方式使用IntegratedSecurity,以便像从SQL Server Management Studio中一样使用Windows凭据登录。

2 个答案:

答案 0 :(得分:1)

尝试 jdbc:sqlserver:// localhost:1433; databaseName = TestDataBase; integratedSecurity = true;

答案 1 :(得分:1)

您可以尝试使用“服务器名称”和“数据库名称”来定义Hermes(或here)提到的连接字符串,以定义实际的JDBC类名称和连接字符串(检查关闭的帮助图标)每个字段):

enter image description here

希望有帮助。