SQL Server 2019 Developer Error: 18456, Severity: 14, State: 149

Mir

I want my normal (role public) user123 (SQL Auth, not PAD, not sysadmin) to login to SQL Server 2019 (Developer version).

  • I have SQL Server and Windows Authentication mode.
  • I have protocols in SQL Server Network Configuration enabled (TCP/IP, Local Machine, Named Pipes).
  • App connecting to DB is written in Visual Studio cpp, with SQLDriverConnect() function.

And I still get this error:

Login failed for user 'user123'. Reason: Login-based server access validation failed with an infrastructure error. Login lacks connect endpoint permission. [CLIENT: 127.0.0.1]
Error: 18456, Severity: 14, State: 149.

When I give user123 sysadmin role, then he connects. But I don't want him to be sysadmin. In fact, I want two separate application to connect to the database with user123 credentials as standard public user. But actually even one application can't connect.

There's a list of permissions: List of DB permissions

Any help and suggestions highly appreciated.

SOLUTION FOUND: Port in SQLDriverConnect() function shall be 1433 (default SQL instance) not 1434 (DAC Connection), with proper permission for public role on particular database (Connect, Select, Insert, etc.).

Martin Cairney

From the error message and the screenshot, I suspect that you might be connecting to the DAC rather than to the main SQL instance.

Please recheck your connection string in the application - or test using SSSMS

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

SQL Server 2019开发人员错误:18456,严重性:14,状态:149

来自分类Dev

SQL Server身份验证错误。18456状态5

来自分类Dev

Azure AD用户无法连接到Azure SQL错误:18456,状态:1,类:14

来自分类Dev

SQL Server 2012 Developer Edition的用法

来自分类Dev

与生产环境的交互SQL Server Developer版本

来自分类Dev

Linux 上的 BCP 实用程序:NativeError = 18456 错误 = [unixODBC][Microsoft][ODBC Driver 17 for SQL Server][SQL Server]用户登录失败

来自分类Dev

SQL Server 2019的TempDB缓存问题

来自分类Dev

SQL Server 2008迁移到2019

来自分类Dev

SQL Server 2019 UDF中的@@ ROWCOUNT错误

来自分类Dev

SQL Server 2019忽略WHERE子句吗?

来自分类Dev

SQL Server 2019的TempDB缓存问题

来自分类Dev

SSMS无法连接到SQL Server 2019

来自分类Dev

安装 Microsoft SQL Server 2019 Ubuntu 20.10

来自分类Dev

SQL Server 2012 Developer Edition-安装失败

来自分类Dev

无法从 ssms 访问 sql server developer sp1 ssis

来自分类Dev

安静(无人参与)安装SQL Server Express LocalDb 2019

来自分类Dev

在SQL Server 2019中递归导入JSON文件

来自分类Dev

无法在Visual Studio 2019中连接到SQL Server Express

来自分类Dev

2019 年及未来 SQL Server 中的数据透视表

来自分类Dev

VS 2019 with VB,创建到 SQL Server DB 的 ADODB 连接

来自分类Dev

从同一台计算机上的SQL Server Express切换到SQL Server Developer版本

来自分类Dev

我一直在为用户登录失败。Azure SQL中的错误18456

来自分类Dev

SQL Developer连接问题

来自分类Dev

计划从SQL Developer导出

来自分类Dev

ORACLE SQL Developer(查询)

来自分类Dev

Oracle SQL Developer更新

来自分类Dev

Oracle SQL Developer(4.0.0.12)

来自分类Dev

循环-SQL Developer

来自分类Dev

安装Oracle SQL Developer

Related 相关文章

热门标签

归档