SQL Server “.” Alias Not Working

后端 未结 8 793
一个人的身影
一个人的身影 2021-02-12 23:26

I\'ve added an alias of \".\" which should point to my local (named) instance, \".\\SQL2008\". But when I try to connect to \".\", it times out.

Am I missing something o

8条回答
  •  北恋
    北恋 (楼主)
    2021-02-13 00:00

    There is no limitation preventing that alias name. At leas it works on my machine ;)

    However, when setting up the alias make sure you create it in the 32 as well as the 64 bit area:

    enter image description here

    I did also spell out localhost instead of just using the .:

    enter image description here

    Also, a SQL Server Alias always uses TCP/IP as connection protocol, which is not enabled by default. Under SQL Server Network Configuration (see above screen shot) check that TCP/IP is enabled for your instance.

提交回复
热议问题