Unable to connect to SQL Server 2014 using ODBC - sql-server

I've set up my first SQL Server 2014 and I am trying to connect to it via ODBC, but I'm getting an error:
Microsoft SQL Server Native Client Version 11.00.2100
Running connectivity tests...
Attempting connection [Microsoft][SQL Server Native Client 11.0]Named
Pipes Provider: Could not open a connection to SQL Server [53].
[Microsoft][SQL Server Native Client 11.0]Login timeout expired
[Microsoft][SQL Server Native Client 11.0]A network-related or
instance-specific error has occurred while establishing a connection
to SQL Server. Server is not found or not accessible. Check if
instance name is correct and if SQL Server is configured to allow
remote connections. For more information see SQL Server Books Online.
TESTS FAILED!
This is the first SQL Server I've set up, so I apologize if I've missed something rudimentary.

Upgrade the driver. You need to use the 12.0.4100.1 or above driver to run SQL Server 2014

Related

Microsoft SQL Server : error while connecting to local server

Whenever I'm trying to connect SSMS to my computer I get this error:
TITLE: Connect to Server
Cannot connect to NUNA.
ADDITIONAL INFORMATION:
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)
The system cannot find the file specified
I'm pretty sure that my computer or server is name is NUNA but it doesn't connect and I get this error. I have tried to stop SQL Server Express in Windows Services, but it doesn't show the SQL Server Express
Did you try restart SQL Server service or try with "."?

SSL Security error when trying to connet to SQL Server 2016 from an udl test file

I am trying to test a SQL connection from my local PC(Win 7) to a SQL Server 2016 machine (Win 2016 Standard X64). I have just created a dummy .udl file, provided the server name, SQL credentials but I am receiving the following error:
[DBNETLIB][ConnectionOpen (SecDoClientHandshake().]SSL Security error.
If I connect through SQL Management Studio is works.
If I try to use the ODBC tool to test data source, I am receiving the following error message in the test connection window
Microsoft SQL Server Native Client Version 11.00.2100
Running connectivity tests...
Attempting connection
[Microsoft][SQL Server Native Client 11.0]Encryption not supported on the client.
[Microsoft][SQL Server Native Client 11.0]SSL Provider: The client and server cannot communicate, because they do not possess a common algorithm.
[Microsoft][SQL Server Native Client 11.0]Client unable to establish connection
[Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
TESTS FAILED!
Update: For .udl dummy test I managed to get it work by enabling TLS 1.0 on the SQL Server System (Registry path: HKLM SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols)
I have enabled TLS 1.0(Registry path: HKLM SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols) on the application server too so now the ODBD Data Source Test works as expected.

Why SQL Server Management Studio 2014 can not connect?

I have installed sql server 2014 in my windows 7.when i am trying to connect to
server it is always shown error either windows authentication or sql server
authentication.
Error:
Connect to Server
Additional Information:
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.
I checked Services.msc ---> Here server is running (MSSQL Server)
I started manually so,still it is showing cannot connect to server.
What's the issue? Can anyone help to solve this isssue?
Thanks.

Cannot Connect to sql server using alias created with Sql Server Client Network Utility

I have created an alias to a Sql Server
with cliconfg.exe (Sql Server Client Network Utility) as below
(according to Setting Up a SQL Server Alias):
Server Alias: MyAliasSqlServer/Myinstance
Server Name: MysqlServer/Myinstance
Port: 1433
Unfortunately the alias doesn't work as
connecting with ODBC Data Source Administrator I get:
Microsoft SQL Server Native Client Version 11.00.3000
Running connectivity tests...
Attempting connection
[Microsoft][SQL Server Native Client 11.0]SQL Server Network Interfaces: Error Locating Server/Instance Specified [xFFFFFFFF].
[Microsoft][SQL Server Native Client 11.0]Login timeout expired
[Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
TESTS FAILED!
The TCP/IP is enabled on the server and I manage to connect with the server name.
I have set aliases for both 32bit and 64bit
I have tryed setting alias on the sql Sever via Sql Server Configuration Manager
What else could I try?
You may need to use a backslash "\" instead of the forward slash.

SQL Server 2012 - Can't connect to local instance

I am having trouble connection to a local instance of Microsoft SQL Server 2012, this is what i have tried so far:
SQL Server Configuration Manager
Enable TCP/IP
Enable Named Pipes
Enable Shared Memory
The SQL Server, SQL Server Browser and SQL Server Agent services are all running.
I have verified that there is a SQL Server instance with: sqlcmd.exe -L this command gives me the following:
Servers:
(local)
MON-W530
SQLCMD
sqlcmd.exe -S MON-W530\MSSQLSERVER -E Gives the following output:
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : SQL Server Network Interfaces: Connection string is not valid [87]. .
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Login timeout expired.
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online..
OSQL
OSQL.EXE -S MON-W530\MSSQLSERVER -E Gives the following output (Identical to sqlcmd.exe above)
[SQL Server Native Client 11.0]SQL Server Network Interfaces: Connection string is not valid [87].
[SQL Server Native Client 11.0]Login timeout expired
[SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.
Its a fresh installation of Microsoft SQL Server 2012 Developer Edition, any help is appriciated.
Edit
Using SQL Server Management Studio 2012, i don't have the option to specify username and password for Windows Authentication, so i guess its not enabled, any clues on enabling Windows Auth is also appriciated.

Resources