SQL Server Management studio 2019

Bharat S 1 Reputation point
2021-04-03T04:56:23.507+00:00

Hello Friends

I recently download SQL server on my desktop and also Microsoft SQL Studio version 18

I am really new to this , need some assistance

I created a DB by name Automic and Logins Automic. But when i try to login , it is getting failed . Not sure what im missing , could you please help me with that

Error message :-
%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

------------------------------

Server Name: DESKTOP-O3FCHKN
Error Number: 18456
Severity: 14
State: 1
Line Number: 65536

------------------------------

Program Location:

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, SqlAuthenticationProviderManager sqlAuthProviderManager)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

could you please advice .

84128-db-and-id.png84028-id-2.png84029-err-1.png

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,646 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,561 Reputation points
    2021-04-03T05:08:31.29+00:00

    Try right click on server "Desktop..." > Properties > Security and enable SQL server and windows mix mode.

    Right click again on server and restart and then try connecting using Atomic login.


    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

    1 person found this answer helpful.
    0 comments No comments

  2. CathyJi-MSFT 21,081 Reputation points Microsoft Vendor
    2021-04-05T03:19:46.157+00:00

    Hi @Bharat S ,

    There are two authentication modes for SQL server( windows authentication and Mix authentication). When you using Login Automic connect to SQL server, this login process using SQL server authentication. By default, we did not enable SQL server authentication. So you need to enable SQL server authentication as VaibhavChaudhari mentioned.

    84329-screenshot-2021-04-05-111356.jpg

    Please restart SQL server service to make this change effect.

    If you want learn more about SQL server authentication, please refer to MS document Choose an Authentication Mode.


    If the response is helpful, please click "Accept Answer" and upvote it, thank you.

    0 comments No comments