Changing the default port numbers when configuring database mirroring

  • 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.
  • 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.

  • 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.

  • 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 3 (of 3 total)

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