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
Ford Fairlane
Ford Fairlane
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3324 Visits: 836
Hi,

I am trying to set up a client alias to connect to a named instance on another server but for the love of me it wont connect -

TITLE: Connect to Server
------------------------------

Cannot connect to fred.

------------------------------
ADDITIONAL INFORMATION:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=53&LinkId=20476

------------------------------

The network path was not found

------------------------------
BUTTONS:

OK
------------------------------

I have set up the alias on the server and as expected it works. On the client side I have used the SQL Server Client Network Utility to configure the client side alias but no luck

I am using TCP/IP with a specific port ..

Any ideas would be greatly appreciated.

By the way the SQL is SQL Server 2012 Ent and the O/S is Windows 2012 R2 minshell


Thanks

Hope this helps...

Ford Fairlane
Rock and Roll Detective





MikaS
MikaS
SSC Veteran
SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)

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

Have you been able to connect from the client computer without using the alias? If your client software doesn't support that for some reason, you can use regular telnet with IP and Port to test connectivity. If it works from the DB server but not from the client, it could be a Firewall blocking your connection.

Mika Sutinen, Senior DBA
@SQLFinn on Twitter
Blogging at SQLStarters
John Mitchell-245523
John Mitchell-245523
SSC-Dedicated
SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)

Group: General Forum Members
Points: 35798 Visits: 16699
Is it just this one client that can't connect? Is remote access allowed?

EXEC sp_configure 'remote access'



John
Ford Fairlane
Ford Fairlane
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3324 Visits: 836
Hi,

So to answer the two questions, yes I can connect from the client machine with out using the alias and yes remote connections has been enabled.

What I am doing is wanting to move some sharepoint databases to another instance and rather than have to redo the sharepoint sites, is create an alias with the old name pointing to the new instance and then leave the config settings as they are.

Thanks

Hope this helps...

Ford Fairlane
Rock and Roll Detective





John Mitchell-245523
John Mitchell-245523
SSC-Dedicated
SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)SSC-Dedicated (35K reputation)

Group: General Forum Members
Points: 35798 Visits: 16699
Have you tried changing the protocol to TCP/IP in the alias?

John
MikaS
MikaS
SSC Veteran
SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)

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

If your client OS is 64-bit you have two cliconfg.exes, one is the 64-bit residing in \Windows\System32 folder and the other one is the 32-bit one in the \Windows\SysWOW64 folder.

If you're running 64-bit OS and just run cliconfg.exe from the Start \ Run, it'll open up the 64-bit one. Try running the one from SysWOW64 folder and adding the alias there.

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

Group: General Forum Members
Points: 3324 Visits: 836
The protocol is set to TCP/IP and I have tried using the 32 and 64bit app.

Still get the following:

TITLE: Connect to Server
------------------------------

Cannot connect to fred.

------------------------------
ADDITIONAL INFORMATION:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=53&LinkId=20476

------------------------------

The network path was not found

------------------------------
BUTTONS:

OK
------------------------------

Hope this helps...

Ford Fairlane
Rock and Roll Detective





MikaS
MikaS
SSC Veteran
SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)SSC Veteran (293 reputation)

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

Error code 53 means: "The network path could not be found". The most common reasons I've seen this occur are:

A) Name resolution failure. This can be tested by adding the server into host file or by creating the alias using the IP instead the server name.
B) Typo in the alias, for example "server/instance" when it should be "server\instance" if you have named instance.

Mika Sutinen, Senior DBA
@SQLFinn on Twitter
Blogging at SQLStarters
Andrew G
Andrew G
SSCarpal Tunnel
SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)SSCarpal Tunnel (4.2K reputation)

Group: General Forum Members
Points: 4169 Visits: 2285
Can you ping the server IP from the client? Ping the server name?
If you can, then add Telnet (from Windows Features) then telnet ip sqlport, eg. telnet 111.111.111.111 1544. Does it connect (blank cursor) or error?

If error, you have a network or port issue. If no error, it's a problem with the sql alias setup.

Remember to remove telnet afterwards.
Ford Fairlane
Ford Fairlane
Hall of Fame
Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)Hall of Fame (3.3K reputation)

Group: General Forum Members
Points: 3324 Visits: 836
Hi,

I have tried host name, ip I have copied the connection from a working SSMS connection and still the same network error !!

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