Point to localhost\sqlexpress using only localhost

前端 未结 3 1960
逝去的感伤
逝去的感伤 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

    This topic is dead and buried, I'm sure... But incase this also helps someone:

    "one developer is running SQL Server Express 2005 and the other 2 are running SQL Server 2005"

    When they installed, chances are the instance was named MSSQLSERVER. When you installed, chances are the instance was named SQLEXPRESS. MSSQLSERVER works as localhost out of the box, SQLEXPRESS does not. You can get round this in SQL Server Express by renaming SQLEXPRESS to MSSQLSERVER on install, for future reference.

    John's solution is obviously cleaner.

提交回复
热议问题