Not able to connect to SQL Server from SSMS - sql-server

I am currently working on an application server, and a SQL Server, in which my database resides.
I seem to have a very weird problem, I seem to be able to ping the SQL Server from my application server, but I cannot connect using SQL Server Management Studio using Windows authentication. If I try to change the password in configuration manager, I get an error saying that it is not possible.
I cannot connect to database, neither remote or locally..
SMSS - says that the login failed for the user.

Related

Default SQL Authentication Details for SQL EXPRESS 2016

I'm attempting to remotely connect to my SQL Express 2016 server through MS SQL on my local machine however am having extreme difficulties with the authentication.. Well I assume it is an authentication issue as when I attempt connect to connect to it I receive the error message:
The remote computer refused the network connection.
When connecting through the sqlcmd I am using Windows authentication and have no issue, however to connect to it remotely I need to use SQL authentication and have no memory of creating an account so am wondering if there's a default login and password?
I believe this is the issue however it is quite likely i'm doing something stupid so any assistance would be appreciated!
You can create an account that can be used to connect to that SQLExpress instance by using SQL Server Management Studio. Expand the database you wish to create a login for in the Object Explorer. Under the Security folder, you can create a new login by right clicking the Logins folder.
Also make sure that your machine has its firewall configured to allow remote connections, the server has remote connections enabled, and that you are allowing logins for Windows Auth and SQL Server Auth.
You can allow remote connections for a server by opening the SQL Server Configuration Manager. Under the SQL Server Network Confiuration Node, Select Protocols for MYSERVERNAME. Ensure that TCP/IP is enabled.
Here's a guide on setting up the firewall: https://technet.microsoft.com/en-us/library/ms175043(v=sql.110).aspx
You can enable SQL Server Authentication by right clicking your server name in the object explorer in SQL Server Management Studio and going to the Security tab. look for the "Server Authentication" option.

SQL server connection issue ,while logging in with sql server authentication?

I am using WINDOWS 10 PRO 64 OS and Installed SQL server 2012 with both Windows authentication and SQL server authentication both mixed.When I am trying to login into the SQL server with SQL server Authentication with default Username as :sa
and Password as :123,it is throwing error unable to connect to the server ,Error:233.I have tried every thing by enabling tcp/ip and Named pipes.Also changed the windows fire wall setting for port.Below is the screen shot of the error.Please find me the solution.enter image description here
try (localhost)/INSTANCE_NAME. For example, I'm assuming your machine name is MADHUBABU-PC, so try MADHUBABU-PC\SQLEXPRESS. (I'm not sure what you named your sql instance.)
Here is a nice link to find your instance name: How to find server name of SQL Server Management Studio

Login Failed on SQL Server 2014

I'm having issues connecting to a SQL Server 2014 database using Management Studio with SQL Authentication. This server was just created by my IT department. I restored a database, I added the login with a password, I made sure the server properties had both SQL Authentication and Windows Authentication checked. I made sure the user at the database level is mapped to the login. But when I try to connect using Management Studio I get the following error. However, it works if I use my Windows Authentication account.
Actually, I kept getting the normal 'Login Failed' message. But this morning I got the above error which is probably more helpful. When I kept trying again, I kept getting the normal Login Failed message.
Have you seen this Microsoft TechNet post about the message you received? It looks like your admin may need to adjust the SQL Server configuration.
Specifically, it looks like you might need to try one of:
Connect using TCP/IP, or use the SQL Server Configuration Manager to
enable remote connections using named pipes.
or...
Using SQL Server Configuration Manager on the client computer, move
TCP before named pipes in the protocol order list.

Error 18456 while connecting error while trying to connect to SQL Server

I am completely new to databases.. I am doing a small application which needs to connect to a SQL Server database.
My SQL Server is installed on the company server
I am trying to login to SQL Server from my local system
Steps I have tried so far:
Since I have admin credentials to the company server I have logged in and included myself (SQL Server authentication) under security -> logins
So now when I try to connect from my local computer it is giving me "Login failed for user (Microsoft SQL Server error 18456)".
Can any one please help me with this?
Goal: I want to connect to companies server from my local machine.

Client side application help requested

I am testing an application. In tableadapter configuration wizard, On server side:
While choosing data source, I chose Microsoft SQL Server Database File.
This gave the connection string as:
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;User Instance=True
Is this correct?
Any way this works in my desired way.
Then in SQL Server Mgmt Express, I attached the database to the instance of my SQL Server Express (to MyhomeServer\SQLExpress"
Now I want to use the same application on Client side (off course databse is stored in Data Directory of my application in Server Side) Now in tableadapter wizard, I choose Microsoft SQL Server Express. Is that correct?
I have done all configurations for remote connection etc. and also done the firewall settings. When I run this test on client side, it returns error:
Cannot open database "Database1.mdf" requested by the login. The login failed. Login failed for user 'MYHOMESERVER\Kh. Furqn'.
Why does it go to Kh. Furqan while I am giving it SQLExpress, where the DB is attached. My server is MyHomeServer\SQLExpress and connection is MyHomeServer\Kh. Furqan (Authentication is Windows Authentication, and no password for it)
Since you chose integrated security the program will try to log onto SQL Server with the current logged on user's credentials - 'MYHOMESERVER\Kh. Furqn'. So the first place I would check is make sure that you can log onto Sql Server Mgmt Studio (SSMS) Express with the windows logon option and logged into the server as Kh. Furqn. Let me know if that works.
Wade

Resources