简体   繁体   English

用户“XYZ”登录失败错误:18456,严重性:14,状态:5

[英]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 错误日志:

  • Error: 18456, Severity: 14, State: 5.错误:18456,严重性:14,状态:5。
  • Login failed for user 'NT Service\\ReportServer'.用户“NT Service\\ReportServer”登录失败。 Reason: Could not find a login matching the name provided.原因:找不到与提供的名称匹配的登录名。 [CLIENT:192.168.29.1] [客户:192.168.29.1]

看错误截图

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.

相关问题 错误:18456,严重性:14,状态:38 原因:无法打开明确指定的数据库“ReportServer”。 [客户:<local machine> ] - Error: 18456, Severity: 14, State: 38 Reason: Failed to open the explicitly specified database 'ReportServer'. [CLIENT: <local machine>] Sql Server - 修复错误错误:18456,严重性:14,状态:11 - Sql Server - Fixing Error Error: 18456, Severity: 14, State: 11 SQL 服务器 2019 开发人员错误:18456,严重性:14,State:149 - SQL Server 2019 Developer Error: 18456, Severity: 14, State: 149 我们的 SQL Server 2005 上的严重性 14 错误状态 16,用户“用户名”登录失败 - Severity 14 error state 16 on our SQL Server 2005 ,login failed for user 'username' 用户&#39;Administrator&#39;登录失败。错误18456 - Login failed for user 'Administrator'.error 18456 SQL Server登录失败,出现用户错误18456 - SQL Server login failed for user error 18456 SQL Server 2005在日志中获取错误:18456,严重性:14,状态:16 - SQL Server 2005 getting Error: 18456, Severity: 14, State: 16. in log 用户登录失败(Microsoft SQL Server 错误:18456) - Login failed for user (Microsoft SQL Server error:18456) 用户“sa”登录失败。 (Microsoft SQL Server,错误:18456) - Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456) 用户的Microsoft SQL Server错误18456登录失败 - Microsoft sql server error 18456 login failed for user
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM