Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Changing the default port numbers when configuring database mirroring Expand / Collapse
Author
Message
Posted Monday, March 14, 2011 12:01 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 4:12 PM
Points: 1,194, Visits: 2,666
Comments posted to this topic are about the item Changing the default port numbers when configuring database mirroring

----------------------------------------------------------------------------
My LinkedIn profile - LinkedIn
Sacramento SQL Server users group - http://sac.sqlpass.org
My blog - http://www.expressnetsolutions.com/sqldch
Follow me on Twitter - @SQLDCH
----------------------------------------------------------------------------

Yeah, well...The Dude abides.
Post #1077551
Posted Monday, March 14, 2011 8:16 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Tuesday, April 08, 2014 1:54 PM
Points: 91, Visits: 107
Thanks for the article! It reminded me of an issue we encountered. If you happen to be using the JDBC driver with mirroring, there are problems with automatically connecting to the alternate server when using a non-standard port (the connection string does not allow you to specify a port for the failover server). More details here: http://blogs.msdn.com/b/psssql/archive/2008/12/31/sql-2005-jdbc-driver-and-database-mirroring.aspx, and there is a report in MS Connect on the problem.
Post #1077727
Posted Monday, March 14, 2011 12:14 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, February 16, 2013 3:03 PM
Points: 5, Visits: 56
I understood this until the string "HAT2" appeared twice.

It looks to be an error, but if it is intended can someone please explain further?

Thanks.
Post #1077921
Posted Monday, March 14, 2011 12:30 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 4:12 PM
Points: 1,194, Visits: 2,666
Roland, thanks for the comment, looks like I missed an edit.

The name of the endpoint on the mirror should be 'MirrorEndpoint'. So yes, the two connect statements should read:

create login [domain\svc-princ-sqlsvr] from windows;
go
grant connect on endpoint::MirrorEndpoint to [domain\svc-princ-sqlsvr]
go

create login [domain\svc-witn-sqlsvr] from windows;
go
grant connect on endpoint::MirrorEndpoint to [domain\svc-witn-sqlsvr]
go

The article has been edited to reflect the above changes.


----------------------------------------------------------------------------
My LinkedIn profile - LinkedIn
Sacramento SQL Server users group - http://sac.sqlpass.org
My blog - http://www.expressnetsolutions.com/sqldch
Follow me on Twitter - @SQLDCH
----------------------------------------------------------------------------

Yeah, well...The Dude abides.
Post #1077935
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse