Groups | Blog | Home
all groups > sql server replication > april 2007 >

sql server replication : Non-Standard Port Problems



Greg Larsen
4/9/2007 9:58:00 PM
We are moving to SQL Server 2005 and have decided to use a non-standard port
number (port number other than 1433). We also decided to turn off the SQL
Browser Services as well. This was done to enhance security, so now
application need to provide <servername>,<port> number when connecting to SQL
Server.

For the most part we are able to connect from application no problem. But
now we are setting up replication and looks like the GUI and Replication
Monitor will not support specifying <servername>,<port> number. The also
will not support Alias names.

I got replication working by scripting the setup of replication, but it
would be nice to be able to use the Replication Monitor. Any suggestions on
how to get this GUI tools working with a non-standard port without SQL
MB
4/10/2007 12:00:00 AM
Hello Greg,

If you are able to connect the respective server via MS SQL Server
Management Studio than your tcp/ip port setting is ok. If not do the
respective tcp/ip settings in SQL Server configuration manager.

Cheers!
MB


[quoted text, click to view]

Hilary Cotter
4/10/2007 12:00:00 AM
Yes, it requires the actual name, but you can hide the alias in the name.

For example your server name is Server1 (what you get when you do this
select @@servername). Your FQDN is Server1.subdomain.domain.com. Your server
is running on port 5000.

Your alias name should be Server1. In the properties of your alias the port
number would be 5000, the protocol tcpip and the server would be
server1.subdomain.domain.com or you can use server1 and then in your hosts
file have the ip address for server1.subdomain.domain.com mapped to server1.

With this alias you should be able to register the subscriber in SSMS.

HTH.

--
Hilary Cotter

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Greg Larsen
4/10/2007 5:30:01 AM
I tried setting up an alias and using that and got the following error:
SQL Server replication requires the actual server name to make a connection
to the server. Connections throught a server alias, IP address, or any other
alternative are not supported. Specify the actual server name, '<server
name.'. (Replication.Utility)

So doesn't look like your solution will work, or am I missing something.


[quoted text, click to view]
Hilary Cotter
4/10/2007 6:18:04 AM
use client network utility (sql 2000) or sql server configuration manager
(sql 2005) to build an alias to your sql server and specify the port there.
Then use this alias to build your subscriber.

--
Hilary Cotter

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Greg Larsen
4/10/2007 10:20:05 AM
Your suggestion solved the problem. Once I created an alias using a FQDN
then I was able to use the GUI to create and manager replication. Thanks for
the tips. No documentation pointed this out.

[quoted text, click to view]
AddThis Social Bookmark Button