SQL Server “.” Alias Not Working

后端 未结 8 787
一个人的身影
一个人的身影 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:02

    you need to run "cliconfg" and setup the alias on your local machine as well. If you have SSMS installed, create the alias in SQL Config Mgr, as this take precedance over the ones set in cliconfg. Remember, SSMS uses 32bit connection to SQL Server, even if is 64bit. If you don't set them locally, how does your PC know where to go for the alias. You could create DNS entries as an alternative.

提交回复
热议问题