Point to localhost\sqlexpress using only localhost

前端 未结 3 1965
逝去的感伤
逝去的感伤 2020-12-13 05:09

Working on a common codebase, one developer is running SQL Server Express 2005 and the other 2 are running SQL Server 2005. Everything is working fine, but the connection st

3条回答
  •  没有蜡笔的小新
    2020-12-13 05:51

    Just tested things out and got it working.

    sql express doesnt enable tcp/ip by default and when enabled doesnt use the default port 1433.

    to make this happen you need to open up "Sql server configuration manager" then under protocols enable tcp/ip. after that double click "tcp/ip", select the "IP Addresses" tab and scroll to the bottom then blank the "TCP Dynamic Ports" and enter 1433 under TCP Port.

    after all that restart the sql server service and it should work with the normal connection string.

提交回复
热议问题