SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Why can I NOT connect to a SQL Server using an alias from my application server, but am able to use...


Why can I NOT connect to a SQL Server using an alias from my application server, but am able to use the alias when logged into the actual SQL Server ?

Author
Message
koln
koln
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1505 Visits: 279

I created an alias (32 and 64 bit) for a named instance (Server1\Instance1) and named it Larry on Server 1.
When I open up SSMS on Server1, and connect via name 'Larry'...I connect fine.
I now want to connect from an application server (that does not have SQL Server on it) via an application configuration page that asks me the server name. When I put the name "Larry" in, its not able to find it on the network. Of course I cannot ping 'Larry' from the app server as well. The reason I don't use Server1\Instance1 on the application server for configuration, is because the application does not like named instances for configuration, so I thought I would get around this problem by creating Larry as an alias.

How can I make this work ?


Ive tried a lot of troubleshooting here are some;
SQL browser is running on Server1
TCP/IP is enabled, actually all protocols are enabled
allow remote connections is checked on Server 1
Firewall is off

Why can I NOT connect via the alias name from the application server ?

THANK YOU!


Lynn Pettis
Lynn Pettis
SSC Guru
SSC Guru (353K reputation)SSC Guru (353K reputation)SSC Guru (353K reputation)SSC Guru (353K reputation)SSC Guru (353K reputation)SSC Guru (353K reputation)SSC Guru (353K reputation)SSC Guru (353K reputation)

Group: General Forum Members
Points: 353546 Visits: 41682
My first question is can you connect to Larry from SSMS running on a different system.

Cool
Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
koln
koln
SSCommitted
SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)SSCommitted (1.5K reputation)

Group: General Forum Members
Points: 1505 Visits: 279
Yes, I can connect via my laptop, after setting up Larry alias on my laptop. I have configuration manager and SSMS on my laptop.
But how can I have an app server connect to Larry ?
Sue_H
Sue_H
SSC Guru
SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)

Group: General Forum Members
Points: 58667 Visits: 12845
koln - Tuesday, March 6, 2018 2:26 PM

I created an alias (32 and 64 bit) for a named instance (Server1\Instance1) and named it Larry on Server 1.
When I open up SSMS on Server1, and connect via name 'Larry'...I connect fine.
I now want to connect from an application server (that does not have SQL Server on it) via an application configuration page that asks me the server name. When I put the name "Larry" in, its not able to find it on the network. Of course I cannot ping 'Larry' from the app server as well. The reason I don't use Server1\Instance1 on the application server for configuration, is because the application does not like named instances for configuration, so I thought I would get around this problem by creating Larry as an alias.

How can I make this work ?


Ive tried a lot of troubleshooting here are some;
SQL browser is running on Server1
TCP/IP is enabled, actually all protocols are enabled
allow remote connections is checked on Server 1
Firewall is off

Why can I NOT connect via the alias name from the application server ?

THANK YOU!



You need to create it on the client - on you laptop, on your app server, etc. You can use CliConfig.exe if the clients don't have Configuration Manager.
This post walks through the process:
Create SQL Server Alias – CliConfg.exe

Sue




Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search