Здравствуйте, Zaks, Вы писали:
Z>To assign a TCP/IP port number to the SQL Server Database Engine
Z>In SQL Server Configuration Manager, in the console pane, expand SQL Server 2005 Network Configuration, expand Protocols for <instance name>, and then double-click TCP/IP.
Z>In the TCP/IP Properties dialog box, on the IP Addresses tab, several IP addresses appear, in the format IP1, IP2, up to IPAll. One of these are for the IP address of the loopback adapter, 127.0.0.1. Additional IP addresses appear for each IP Address on the computer. Right-click each address, and then click Properties to identify the IP address that you wish to configure.
Z>If the TCP Dynamic Ports dialog box contains 0, indicating the Database Engine is listening on dynamic ports, delete the 0.
Z>In the IPn Properties area box, in the TCP Port box, type the port number you wish this IP address to listen on, and then click OK.
Z>In the console pane, click SQL Server 2005 Services.
Z>In the details pane, right-click SQL Server (<instance name>) and then click restart, to stop and restart SQL Server.
Z>After you have configured SQL Server to listen on a specific port there are three ways to connect to a specific port with a client application:
это я сделал! не помогло... та же ошибка
Z>Program the client to connect using a custom connection string.
custom connection... это вроде то что я и делаю...
SqlConnection conn = new SqlConnection("Server=localhost; Database=MyData; Integrated Security=true");