SQL Server在Windows身份验证模式下成功登录,但在SQL Server身份验证模式下失败

时间:2018-01-22 02:48:21

标签: sql-server authentication

我已检查过我的服务器是SQL Server和Windows身份验证模式。

我是这台服务器的sa。

我可以在Windows身份验证中成功登录。我还创建了一个帐户,但无法登录SQL Server身份验证。

我将此sqlserver帐户和密码共享给其他人,他们可以成功登录。 为什么会这样? 错误日志是:18456,状态1。

错误号码:18456 严重程度:14 州:1 行号:65536

计划地点:

at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity,SqlConnectionString connectionOptions,SqlCredential credential,Object providerInfo,String newPassword,SecureString newSecurePassword,Boolean redirectedUserInstance,SqlConnectionString userConnectionOptions,SessionData reconnectSessionData,DbConnectionPool pool,String accessToken,Boolean applyTransientFaultHandling )    在System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions选项,DbConnectionPoolKey poolKey,Object poolGroupProviderInfo,DbConnectionPool池,DbConnection owningConnection,DbConnectionOptions userOptions)    在System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection,DbConnectionPoolGroup poolGroup,DbConnectionOptions userOptions)    在System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection,TaskCompletionSource 1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource 1重试,DbConnectionOptions userOptions)    在System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection,DbConnectionFactory connectionFactory,TaskCompletionSource 1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource 1重试)    在System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1重试)    在System.Data.SqlClient.SqlConnection.Open()    在Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci,IServerType服务器)    在Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

0 个答案:

没有答案
相关问题