Web Hosting Talk







View Full Version : MSSQL 2005 connectivity problem


nileshparmar
11-29-2010, 07:53 AM
Hi,

We are using Windows Server 2003
we have installed MSSQL 2005 Server Management Studio Express

I am not able to connect to the MSSQL 2005 server from my local machine at a same time if i try using RDP of the server i can connect. So the problem is only at local side.

Error Message

===================================

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) (.Net SqlClient Data Provider)

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

------------------------------
Error Number: 53
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.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)
at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

Softsys Hosting
11-29-2010, 08:39 AM
You will need to check that you've enabled remote connections and the port that you're using is not blocked by firewall (either on your server side or on your local machine).

nileshparmar
11-29-2010, 08:42 AM
You will need to check that you've enabled remote connections and the port that you're using is not blocked by firewall (either on your server side or on your local machine).

How do i check this option ?
if firewall blocking port how do i unblock it ?

Softsys Hosting
11-29-2010, 08:45 AM
How do i check this option ?


You can follow steps mentioned at below URL:

http://support.microsoft.com/kb/914277



if firewall blocking port how do i unblock it ?

You will need to contact respective firewall admins to do this for you. If you have access to firewall, you can add an exception/rule for allowing connections over given port.

kpmedia
11-29-2010, 08:52 AM
I've never looked into the reason, or know if it's entirely necessary, but I notice that Plesk auto generates "mssql.domain.com" for each of my SQL-enabled domains, when adding them to the server. I manually clone that to my DNS server.

PremiumHost
11-30-2010, 08:05 AM
You can connect to mssql server ip instead of "mssql.domain.com"
Dns record for different services (mssql, stats, mysql) is just a shortcut so people don't need to remember server ip or access url.