Solved

How to use SQL Server alias?

Posted on 2011-03-25
4
384 Views
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?
Thanks!
0
Comment
Question by:luyan
  • 3
4 Comments
 
LVL 14

Expert Comment

by:Daniel_PL
Comment Utility
On client machine:
click on Start->run (type) cliconfg.exe
clieck on tab alias and define your alias

http://www.mssqltips.com/tip.asp?tip=1620
0
 
LVL 14

Accepted Solution

by:
Daniel_PL earned 500 total points
Comment Utility
You can also set up alias in SQL Server configuration manager.
Here's great article about it:
http://www.mssqltips.com/tip.asp?tip=1620

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

Author Closing Comment

by:luyan
Comment Utility
Thanks!
0
 
LVL 14

Expert Comment

by:Daniel_PL
Comment Utility
You're welcome ;)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 discusses moving either the default database or any database to a new volume.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now