Cannot connect to server after creating a logon and user - sql-server

I've been having troubles in creating new users on the SQL Server. Those were the steps I took:
Connect to the server via Windows authentication
Access Security > Logons > Create Logon
Create a new Logon to use SQL Server authentication
In each database, create new users (same name as logon). Those users were set Owned Schemas and Membership as db_datareader and db_datawriter
Close the connection and connect by the user created
After that process, I get the message:
It is not possible to connect to DESKTOP-QMQIHKL:
A connection with the server was successfully establishes, but during the logon process an error occurred. (provider: Shared Memory Provider, error: 0 - There is not a process in the other extreme of the pipe). (Microsoft SQL Server, Error: 233).
I've tried to overcome this error message by:
Opening SQL Server Configuration Manager and enable the TCP/IP protocol.
Opening Windows Services and executing both, SQL Server Browser and SQL Server (MSSQLSERVER).
None of that have worked. For that reason, I would like your help in solving this problem.

Have you enabled SQL Server authentication mode? By default, SQL Server is configured to use exclusively Windows authentication mode, so it will not accept your SQL Server authentication logins.
For changing the accepted authentication modes, see this article: https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/change-server-authentication-mode?view=sql-server-ver15

Related

Cannot Access SQL Server to Connect Database

I have created a database on our SQL Server for Eplan. When I try to login to SQL using Windows Authentication I receive an error that states:
Login Failed. Login is from an untrusted domain and cannot be used with Windows authentication.
When I use my SQL server login it returns:
Connection could not be established. Login failed for user xxx
So I've verified that I am using the correct login/password. TCP/IP is enabled and SQL Server uses SQL Server and Windows Authentication.
I am really at loss as to what to do next.
Thank you!
EplanSQL

Connect Power BI with Azure SQL Database Server Using AAD Credentials

I am trying to connect Power BI to an Azure SQL Database Server. I am able to connect to the database using SSMS and have added my IP to the firewall settings of the server. However, every time I try to connect Power BI to my SQL Server, I get the following error:
"A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)"
I am authenticating to the SQL Server using my Microsoft account, but the error still persists.
I am not sure if you have any network related issues. But, based on my test, everything works fine at my side.
Here are my steps:
1. Set Active Directory Admin for your Azure SQL
And my suggestion here is to add a security group as AD Admin. Then you can add uses to that groups, and all the added users will be administrators.
2. Add firewall rule for your Azure SQL
3. Connect to Azure SQL in Power BI
a). Get Data from Azure -> Azure SQL Database
b). Input your server name and database name
c). Sign in with Azure AD credentials and connect
The account should be set as Active Directory Admin for your Azure SQL Server in step 1.
d). Get data
Recently went through this and was able to connect to a SQL Server with AAD through PBI using the ODBC connection:
Get Data -> Other -> ODBC
Data source name dropdown: (None)
Advanced Options: enter the following connection string:
Driver={ODBC Driver 17 for SQL Server};Server=<SERVER NAME>;Database=<DB NAME>;Authentication=AticeDirectoryPassword
You will then be prompted for your username and password.

Not able to Connect to MSSQL Server

We have recently migrated our server. Now I am try to connect to MSSQL Servers through the Administrator account but I am getting the below error.
I am trying to connect with SQL Server Auth.
ADDITIONAL INFORMATION:
A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)
PS: Below are things, I have already tried:
Restart the services.
Check the order of protocols & make sure -
Shared Memory> TCP/IP > then Named Pipes
Also, I have tried to use
with a fully qualified name.
I don't have access to connect with Windows Auth. I have tried to create an account but no luck. Will you advise on how to hack in now?
The user id I had in my connection string was not existing in the database (not server).

SQL Server 2016 Remote Connection Error 18456

I have recently installed SQL Server 2016 on Amazon EC2 instance so I can start developing various SSIS / SSRS applications.
I have enabled Remote connections, opened port 1433 in the security group and windows firewall, and created a user 'myuser123' who is enabled and and allowed SQL Server and Windows Authentication within the server properties.
I am trying to login using this connection
ec2-1-2-3-4.eu-west-1.compute.amazonaws.com\MSSQLSERVER,1433
SQL Server Authentication
username: myuser123
password: #########
The error message I am getting looks to be a user authentication error.
Cannot connect to ec2-1-2-3-4.eu-west-1.compute.amazonaws.com\MSSQLSERVER,1433
Additional Information
Login failed for user 'myuser123'. (Microsoft SQL Server, Error 18456)
However when I Remote Desktop to the EC2 Instance and try to log in locally using the same username / password I don't have any problem.
Do you have any idea why this may be?
Thanks
M

SQL server 2008 login issue

Hi I created a new login SQL server authentication in SQL server 2008, however I am unable to login with that user.
Getting an error like ,
TITLE: Connect to Server
Cannot connect to (local).
ADDITIONAL INFORMATION:
Login failed for user 'sa'. (Microsoft SQL Server, Error: 18456)
The error Login failed for user 'sa' means that connection to server was established, but server refused it under certain circumstances, such as:
Wrong password
Sql server uses only Windows Authentication (needs server restart)
In your Connection String you ask to connect to specified DB, which is not exists
sa login is Disabled or Denied to access sql engine
User Action
If you are trying to connect using SQL Server Authentication, verify
that SQL Server is configured in Mixed Authentication Mode.
If you are trying to connect using SQL Server Authentication, verify
that SQL Server login exists and that you have spelled it properly.
If you are trying to connect using Windows Authentication, verify
that you are properly logged into the correct domain.
If your error indicates state 1, contact your SQL Server
administrator.
From this article
Should this not help try troubleshooting this issue following these steps.

Resources