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


SQL Alias between client and server


SQL Alias between client and server

Author
Message
MikaS
MikaS
SSC Veteran
SSC Veteran (259 reputation)SSC Veteran (259 reputation)SSC Veteran (259 reputation)SSC Veteran (259 reputation)SSC Veteran (259 reputation)SSC Veteran (259 reputation)SSC Veteran (259 reputation)SSC Veteran (259 reputation)

Group: General Forum Members
Points: 259 Visits: 711
Hi,

I think there might be something wrong with the alias you're creating. In the Add Network Library Configuration page check the following:

Server alias: This is the alias name to the server you're connecting to.
Network libraries: This should most likely be TCP/IP
Connection parameters: Either the network name or the IP-address of your SQL Server. If it's a named instance then it should be servername\instance

There is also option to un-check the "Dynamically determine port". If you're using this, trying un-checking and entering the port that is listening.

One other thing that comes to my mind is that it might be a name resolution problem. You're creating the alias using a name that was previously used by the old DB server. Do you have that entry in the HOST file? I believe it will first check that before doing any other name resolutions and it might mess up your configuration. You could also test this by creating the alias using a dummy name that doesn't exist in your network and see if it works.

Mika Sutinen, Senior DBA
@SQLFinn on Twitter
Blogging at SQLStarters
Ford Fairlane
Ford Fairlane
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3222 Visits: 836
MikaS (7/26/2014)
Hi,

I think there might be something wrong with the alias you're creating. In the Add Network Library Configuration page check the following:

Server alias: This is the alias name to the server you're connecting to.
Network libraries: This should most likely be TCP/IP
Connection parameters: Either the network name or the IP-address of your SQL Server. If it's a named instance then it should be servername\instance

There is also option to un-check the "Dynamically determine port". If you're using this, trying un-checking and entering the port that is listening.

One other thing that comes to my mind is that it might be a name resolution problem. You're creating the alias using a name that was previously used by the old DB server. Do you have that entry in the HOST file? I believe it will first check that before doing any other name resolutions and it might mess up your configuration. You could also test this by creating the alias using a dummy name that doesn't exist in your network and see if it works.



Server Alias = Fred -- so its not something that has been used before, by ANY DB Server.
Network libraries is set to use TCP/IP and the port is set to the configured port that the particular instance is listening on - ie not Dynamically determining the port.
The connection parameter is set to hostname\insatnce name.

Hope this helps...

Ford Fairlane
Rock and Roll Detective





Ford Fairlane
Ford Fairlane
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3222 Visits: 836
For all those who offered advice, thank you. The problem was not SQL or the alias or even setting up the alias, it was the Windows Server itself.

Fortunately it was a test lab so once rebuilt I was able to create the alias with out any issues. However I can not tell you what exactly the problem was.

Hope this helps...

Ford Fairlane
Rock and Roll Detective





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