SQL Server 2005 enable remote connections in VB.NET

By default, SQL Server 2005 doesn’t allow remote connection so you have to enable it manually. This article shows you how to enable remote connection in your SQL Server 2005.
  • 1939

First time when I tried to make remote connection, I got this error message.

"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 connection ...?"

By default, SQL Server 2005 doesn't allow remote connection so you have to enable it manually. If you try to connect to remote SQL Server without enable remote connection first. This is a security precautions that prevents other computers from connection to this instance of SQL Server before it has been properly secured. If you have seccessfully installed SQL Server 2005 and you want to allow other computers to be able to access your instance of database then you have to be enable remote connection in your system.

Here we go step by step, how to do enable remote connection.

  1. Use Surface Area Configuration Tool to enable remote connetion. See in snapshot how?

    What is Surface Area Configuration Tool?

    Microsoft SQL Server 2005 selectively installs and starts key services and features. This helps reduce the attackable surface area of a system. In the default configuration of new installations, many features are not enabled. A system administrator can change these defaults at installation time and also selectively enable or disable features of a running instance of SQL Server 2005.

      im1.jpg

     
  2. Now click on the Surface Area Configuration for Services and Connections.

     
    im2.jpg

     
  3. Now click on SQLEXPRESS/Database Engine/RemoteConnections/ or MSSQLSERVER.

     
  4. Now enable Local and remote connections.

     
    im3.jpg

 

Hope it will help.

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.