Solved

How to use SQL Server alias?

Posted on 2011-03-25
4
414 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
ID: 35216622
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
ID: 35256941
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
ID: 35395489
Thanks!
0
 
LVL 14

Expert Comment

by:Daniel_PL
ID: 35395604
You're welcome ;)
0

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

Suggested Solutions

Title # Comments Views Activity
SQL Query 2 63
Sql Data via Excel--performance issues 2 56
2 comma seperated list - SQL Server 12 44
Urgent help needed! Unable to to paste in query designer 29 48
I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

830 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