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.SqlI
nternalCon
nection.On
Error(SqlE
xception exception, Boolean breakConnection)
at System.Data.SqlClient.TdsP
arser.Thro
wException
AndWarning
(TdsParser
StateObjec
t stateObj)
at System.Data.SqlClient.TdsP
arser.Conn
ect(Server
Info serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)
at System.Data.SqlClient.SqlI
nternalCon
nectionTds
.AttemptOn
eLogin(Ser
verInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject)
at System.Data.SqlClient.SqlI
nternalCon
nectionTds
.LoginNoFa
ilover(Str
ing host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
at System.Data.SqlClient.SqlI
nternalCon
nectionTds
.OpenLogin
Enlist(Sql
Connection
owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlI
nternalCon
nectionTds
..ctor(DbC
onnectionP
oolIdentit
y identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
at System.Data.SqlClient.SqlC
onnectionF
actory.Cre
ateConnect
ion(DbConn
ectionOpti
ons options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
at System.Data.ProviderBase.D
bConnectio
nFactory.C
reateNonPo
oledConnec
tion(DbCon
nection owningConnection, DbConnectionPoolGroup poolGroup)
at System.Data.ProviderBase.D
bConnectio
nFactory.G
etConnecti
on(DbConne
ction owningConnection)
at System.Data.ProviderBase.D
bConnectio
nClosed.Op
enConnecti
on(DbConne
ction outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlC
onnection.
Open()
at Microsoft.SqlServer.Manage
ment.SqlSt
udio.Explo
rer.Object
ExplorerSe
rvice.Vali
dateConnec
tion(UICon
nectionInf
o ci, IServerType server)
at Microsoft.SqlServer.Manage
ment.UI.Co
nnectionDl
g.Connecto
r.Connecti
onThreadUs
er()
could you please guide me how to connect without the port ...
thanks