[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

SQL Express connecting form remote error 26

Posted on 2016-10-10
7
Medium Priority
?
92 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:Sajid Shaik M
[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 18

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 17

Author Comment

by:Sajid Shaik M
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 52

Expert Comment

by:Vitor Montalvão
ID: 41836673
Check if you have SQL Browser running. If not, start it.
0
Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

 
LVL 17

Author Comment

by:Sajid Shaik M
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 52

Accepted Solution

by:
Vitor Montalvão earned 2000 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 17

Author Comment

by:Sajid Shaik M
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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

656 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