Changing the default port numbers when configuring database mirroring

  • SQLDCH

    SSChampion

    Points: 11475

    Comments posted to this topic are about the item Changing the default port numbers when configuring database mirroring

    ----------------------------------------------------------------------------
    Sacramento SQL Server users group - http://sac.sqlpass.org
    Follow me on Twitter - @SQLDCH
    ----------------------------------------------------------------------------

    Yeah, well...The Dude abides.
  • Mike Arney

    SSChasing Mays

    Points: 617

    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.

  • Roland Brown

    SSC Enthusiast

    Points: 149

    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.

  • SQLDCH

    SSChampion

    Points: 11475

    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.

    ----------------------------------------------------------------------------
    Sacramento SQL Server users group - http://sac.sqlpass.org
    Follow me on Twitter - @SQLDCH
    ----------------------------------------------------------------------------

    Yeah, well...The Dude abides.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply