How to use SQL Server alias?

Posted on 2011-03-25
Last Modified: 2012-05-11
I set up a SQL Server Alias 'Appdev' in SQL Server Configuration Manager. And could connect the alias through "sqlcmd -Sappdev -Uusername -Ppassword" from the window server. But I couldn't connect from my PC (XP Windows). How to use SQL Server alias from client?
Question by:luyan
  • 3
LVL 14

Expert Comment

ID: 35216622
On client machine:
click on Start->run (type) cliconfg.exe
clieck on tab alias and define your alias
LVL 14

Accepted Solution

Daniel_PL earned 500 total points
ID: 35256941
You can also set up alias in SQL Server configuration manager.
Here's great article about it:

After defining alias you are able to use it instead of server name or address while connecting in ssms.

Author Closing Comment

ID: 35395489
LVL 14

Expert Comment

ID: 35395604
You're welcome ;)

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question