>>>
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: Named Pipes Provider, error: 40 - Could not open a connection to
SQL Server)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection)
>>>
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
Merci Marc
Avez-vous essayé de mettre Data Source=<serverName>SQLEXPRESS; dans la
connection string?
--
Patrice Truong | patrice.truong@microsoft.com | Microsoft Consulting
Services
[ This posting is provided "AS IS" with no warranties, and confers no
rights.]
"(" <Marcus@marcus.fr> wrote in message
news:ukZV4umzFHA.720@TK2MSFTNGP15.phx.gbl...
Bonjour
j'ai installé la dernière version du
fw 2.0 : 2.0.50215.45
et de sql express ctp 09/05 (9.00.1314)
Tout deux avec les paramètres par defaut.
Ensuite, dans une application winform, quand je me connecte avec ce code :
Dim cnx As New SQLConnexion("Data Source2.168.0.4; Initial
Catalog=test;
Integrated Security=SSPI;")
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: Named Pipes Provider, error: 40 - Could not open a connection
to
SQL Server)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection)
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)