Solved

SQL Express connecting form remote error 26

Posted on 2016-10-10
7
74 Views
Last Modified: 2016-10-14
Dear All

SQL Express installed on our server  ServerA and instance name is SqlExpress which is working fine on the local server, recently we activated windows server after trial expired... then onward we are facing an issue from remote sites.

that from remote SQL Express we are unable to connect database Error showing  SQL Network Interfaces, error: 26 – Error Locating Server/Instance Specified,

the thing is while connecting Sql instance name with port it's working fine but without port it's not connecting

EX:   ServerA\SqlExpress,1433   (it's connecting but our application giving error)

when we try to connect with ServerA\SqlExpress  the connection is failed with 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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (.Net SqlClient Data Provider)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476

------------------------------
Error Number: -1
Severity: 20
State: 0


------------------------------
Program Location:

   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
   at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
   at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
   at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   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 guide me how to connect without the port ...

thanks
0
Comment
Question by:Shaik M. Sajid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 17

Expert Comment

by:Gaurav Singh
ID: 41836615
are you able to telnet the Port from the remote server?  Refer below:
https://technet.microsoft.com/en-us/library/ms165718(v=sql.105).aspx
0
 
LVL 16

Author Comment

by:Shaik M. Sajid
ID: 41836632
Hi, Gaurav,

yeah i am able to telnet as i said

i am able to connect  from remote SQLExpress    .. instance name with port no.

ServerA\SqlExpress,1433     (is working fine  but i dont want to use the port here)

thanks
0
 
LVL 50

Expert Comment

by:Vitor Montalvão
ID: 41836673
Check if you have SQL Browser running. If not, start it.
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 16

Author Comment

by:Shaik M. Sajid
ID: 41836757
Dear, Vitor Montalvão thanks i tried this already

but no use...

the question is Prior to activate windwos2008 R2 (on trial Version) it worked fine but after activation the same server with genuine key... the issue rised...

will it make any difference ?
0
 
LVL 50

Accepted Solution

by:
Vitor Montalvão earned 500 total points
ID: 41836761
Oh, you activated the Windows Server and not the SQL Server.
Did you try to repair the SQL Server installation? Maybe it needs to know that Windows has been activated so a repair can help.
0
 
LVL 16

Author Comment

by:Shaik M. Sajid
ID: 41836766
hmm i'll try this and let you know ...

thanks
0
 
LVL 4

Expert Comment

by:Daniel Jones
ID: 41837838
Go to SQL Server Configuration Manager
> SQL Server Services
> Window show all the servers which may stop (right side)
> Right click on SQL Server(SQLEXPRESS) and start.
> Try to connect server

Make sure that the "SQL Server Browser" was configured to start automatically and was started.

For more solutions, visit: http://www.sqlserverlogexplorer.com/fix-error-code-26/
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question