Enable remote connections for SQL Server Express 2012

前端 未结 17 743
栀梦
栀梦 2020-11-22 03:33

I just installed SQL Server Express 2012 on my home server. I\'m trying to connect to it from Visual Studio 2012 from my desktop PC, and repeatedly getting the well-known e

17条回答
  •  有刺的猬
    2020-11-22 04:33

    The correct way to connect to remote SQL Server (without opening UDP port 1434 and enabling SQL Server Browser) is to use ip and port instead of named instance.

    Using ip and port instead of named instance is also safer, as it reduces the attack surface area.

    Perhaps 2 pictures speak 2000 words...

    This method uses the specified port (this is what most people want I believe)..

    enter image description here

    This method requires opening UDP port 1434 and SQL Server Browser running..

    enter image description here

提交回复
热议问题