all groups > sql server msde > february 2007 >
You're in the

sql server msde

group:

SQL Server Express edition 2005


SQL Server Express edition 2005 Manikandan Jawaharlal
2/27/2007 5:33:27 AM
sql server msde:
I installed SQL Server Express edition 2005 in my Windows XP sp 2. I enabled
TCP/named pipes settings in SQL Server Surface Area Configuration.

I am trying to access from other XP Clients. I got the following error.

An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance
Specified) (.Net SqlClient Data Provider)


(

at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection)
at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
stateObj)
at System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner,
Boolean& failoverDemandDone, String host, String failoverPartner, String
protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean
encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection
owningObject, Boolean aliasLookup)
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.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)
at
Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser())

Re: SQL Server Express edition 2005 Andrea Montanari
2/27/2007 5:06:57 PM
hi,
[quoted text, click to view]

verify no network connection problems are present..
verify the instance name has been correctly set.. (ComputerName or
ComputerName\InstanceName in case of named instance)...
verify the SQL Browser is up and running in case of a NamedInstance..
verify the FireWall has been set to allow connections via appropriate
excpetions on the SQL Server Database Engine port or executable and SQL
Browser port (if required by Named Instances)..
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz http://italy.mvps.org
DbaMgr2k ver 0.21.0 - DbaMgr ver 0.65.0 and further SQL Tools
--------- remove DMO to reply

Re: SQL Server Express edition 2005 Manikandan Jawaharlal
2/27/2007 8:21:10 PM
Hi,
Thanks for reply.
Network connection are present. ( I am able to ping the machine from
the other machine).
ComputerName\SQLExpress is my named instance. I am able to connect in
local computer.
SQL Browser is running.

Please tell me.. How to set and in which pc i need to set the
firewall to allow connections via appropriate exceptions on the SQL Server
Database Engine port.


[quoted text, click to view]
Re: SQL Server Express edition 2005 Andrea Montanari
2/28/2007 12:00:00 AM
hi,
[quoted text, click to view]

on the pc hosting the SQLExpress instance..
http://support.microsoft.com/kb/841249/en-us
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz http://italy.mvps.org
DbaMgr2k ver 0.21.0 - DbaMgr ver 0.65.0 and further SQL Tools
--------- remove DMO to reply

Re: SQL Server Express edition 2005 Manikandan Jawaharlal
2/28/2007 2:37:05 AM
I did the firewall settings. Now sql server 2005 is working. Thank you very
much.

[quoted text, click to view]
AddThis Social Bookmark Button