elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Introducción a la Factorización De Semiprimos (RSA)


  Mostrar Temas
Páginas: [1]
1  Programación / Programación Visual Basic / Error 40 al Conectar con SQL Server 2005 desde VB 2005 en: 26 Abril 2006, 05:23 am
Hola amigos primero que nada gracias por su tiempo.
Necesito ayuda acerca de este error: cuando intento ejecutar las
siguientes líneas...

Dim Con as new SqlConnection
Con.ConnectionString = "Server=PCTERMINAL;Database=ejemplo;uid=sa;pwd=;"
Con.Open()

Me salta el siguiente error 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: Named Pipes Provider, error: 40 - Could not open a connection to
SQL Server) "

1.-Utilizo Visual Basic 2005 y SQL Server 2005
2.-La base de datos está en la misma máquina que estoy trabajando
3.-Configure el firewall de mi Máquina
4.-Configure el SQL para que aceptara PIPE y TCP
5.-Busqué en las siguientes páginas de Microsoft...
* http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=192622&SiteID=1
* http://blogs.msdn.com/sql_protocols/archive/2005/12/22/506607.aspx
... Pero están en inglés(que no conozco mucho) y las traducciones son
malísimas

bueno si me pueden ayudar desde ya muchísimas gracias...

santi
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines