[英]Login failed for user 'XYZ' Error: 18456, Severity: 14, State: 5
I'm trying to map the content of a relational database to RDF using D2RQ.我正在尝试使用 D2RQ 将关系数据库的内容映射到 RDF。
To generate-mapping I'm using Command Prompt.要生成映射,我正在使用命令提示符。 I'm trying to access the SQL Server database but I'm getting the error:
我正在尝试访问 SQL Server 数据库,但出现错误:
Database Connection to jdbc:sqlserver://servername;databaseName=.. failed.与 jdbc:sqlserver://servername;databaseName=.. 的数据库连接失败。 Login failed for user 'XYZ'.
用户“XYZ”登录失败。
I've checked the SQL error log:我检查了 SQL 错误日志:
While in SQL Server i can open the database with this user.在 SQL Server 中,我可以使用该用户打开数据库。
Connection properties on SQL Server: see Connection Properties on SQL Server SQL Server 上的连接属性:请参阅 SQL Server 上的连接属性
My team lead, pointed out the issue.我的团队负责人指出了这个问题。 As I could not find the issue/solution here, posting it for others.
由于我在这里找不到问题/解决方案,因此将其发布给其他人。
I knew I could not use windows authentication, so I was trying to use SQL Server Authentication, this was the problem.我知道我不能使用 Windows 身份验证,所以我尝试使用 SQL Server 身份验证,这就是问题所在。
To access SSMS as a different user - When opening SSMS from your PC;以其他用户身份访问 SSMS - 从您的 PC 打开 SSMS 时; Shift + right click > 'Run as Different User' enter ID 'Admin1' + password, proceed as normal.
Shift + 右键单击 > '以不同用户身份运行' 输入 ID 'Admin1' + 密码,照常进行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.