Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
How can I enable TCP/IP connection in sql express 2005 using sql query ?
Or
How can I enable TCP/IP connection in sql express 2005 using .net 2008 ?
Posted
Comments
Sergey Alexandrovich Kryukov 1-Mar-12 16:45pm    
?????
SQL query?! And what is ".NET 2008"?!
You just need to wake up, probably... :-)
--SA
mistryshailesh 2-Mar-12 0:32am    
I want to enable the connection from .net 2008 and that is the way I want to do it?
If u have a solution, just pass it on.
Thanx
Sergey Alexandrovich Kryukov 2-Mar-12 0:44am    
OK, what is ".NET 2008"?
--SA
Varun Sareen 2-Mar-12 0:09am    
have you tried google? and why do you require it by query?

1 solution

Try this solution to do it manually:-

In order to connect to the Microsoft SQL Server 2005 remotely, TCP/IP needs to be enabled. This is disabled by default on Microsoft SQL Server 2005 Express edition. TCP/IP may also be manually disabled on other editions of Microsoft SQL Server 2005.

This article explains how to enable TCP/IP on Microsoft SQL Server 2005:

From the Microsoft SQL Server 2005 -> Configuration Tools, open the 'Microsoft SQL Server Configuration Manager'.

Expand ‘SQL Server 2005 Network Configuration’, and then click ‘Protocols for <instance name="">’.
<Instance Name> is the name of the instance of Microsoft SQL Express being used by the GFI product.

Right-click ‘TCP/IP’ and then click ‘Enable’. The icon for the protocol will change to show that the protocol is enabled.


this link will be helpful showing the pictorial representation of how to enable remote connection in SQL Server 2005

http://www.webxpert.ro/andrei/2009/05/31/enable-tcpip-on-sql-server-2005-express-edition/[^]

I hope the above solution works for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900