Solved

MSSQLServer 2005

Posted on 2011-02-17
2
1,388 Views
Last Modified: 2012-05-11
Client received this error when trying to contact the server do you know what could be the problem:
Ett nätverksrelaterat eller instansspecifikt fel uppstod när en anslutning skulle upprättas till SQL Server. Servern hittades inte eller var inte tillgänglig. Kontrollera att instansnamnet är korrekt och att SQL Server är konfigurerad till att tillåta fjärranslutningar. (provider: Namngivna rör-provider, error: 40 - Det gick inte att öppna en anslutning till SQL Server)
Mandator Client Layer Exception
1 SqlException: Ett nätverksrelaterat eller instansspecifikt fel uppstod när en anslutning skulle upprättas till SQL Server. Servern hittades inte eller var inte tillgänglig. Kontrollera att instansnamnet är korrekt och att SQL Server är konfigurerad till att tillåta fjärranslutningar. (provider: Namngivna rör-provider, error: 40 - Det gick inte att öppna en anslutning till SQL Server)
   vid System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
   vid System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   vid System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   vid System.Data.SqlClient.SqlConnection.Open()
   vid Mandator.Cenit.Services.ServiceHandlerBase.get_Connection()
   vid Mandator.Cenit.Services.ServiceHandlerBase.LookupValue(String field, String domain, String where, SqlParameter[] bindVariables)
   vid Mandator.Cenit.Services.ServiceHandlerBase.GetSetting[T](String name, T defaultValue)
0
Comment
Question by:vera2006
[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
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 34915097
Well, the message says that it cannot find the Sql server, which suggests one of a few possibilities.

1) The server/database name in the connection string is incorrect
2) The SQL Server box is blocking incoming traffic on the port for SQL Server (1433 by default)
3) The client machine firewall/anti-virus is blocking the outgoing traffic
4) SQL is not configured for remote connections (although this is unlikely unless you are running SQL Express)
0
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 34915303
please confirm the language?
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
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.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

724 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