Hello everyoneI'm a DBA in training and this is my second post here on SQL Server Central.--========================================================Sadly I don't have a spare server to mess about with in the office so I've got a laptop (not connected to any networks) hosting multiple Hyper-V VMs on Windows Server 2012 R2 standard and I'm currently trying to setup Mirroring using SQL Server 2014 (Enterprise Evaluation Edition).Attemp No2:--========================================================Mirror a database across 2 instances using 2 different VMsOn VM machine SERVER1:-Added "local" to the Primary DNS suffix-Set Hyper-V Virtual Switch to PRIVATE-Turned off windows Firewall-Installed 1 instance of SQL Server 2014 (Instance A)-Created a database called "DBMirror" on instance A-Backed up database FULL-Backed up database LOG-Copied files over to SERVER2On VM machine SERVER2:-Added "local" to the Primary DNS suffix-Set Hyper-V Virtual Switch to PRIVATE-Turned off windows Firewall-Installed 1 instance of SQL Server 2014 (Instance B)-Restored database FULL using MOVE and NORECOVERY on instance B-Restored database LOG using NORECOVERY--========================================================Instance A > DBMirror > Tasks > Mirror-Followed GUI -No Witness-Instance A set to Port 5022 and Endpoint to "Mirroring" (Encryption OFF)-Instance B set to Port 5022 and Endpoint to "Mirroring" (Encryption OFF)-Service accounts page left empty (Not on a domain)-Finish-Configuring Endpoints - Successful > CloseSounds good so farTCP://SERVER1/A.local:5022TCP://SERVER2/B.local:5022Click "Start Mirroring"-FQDN Warning message > Click Yes--========================================================RESULTS:The Server network address "TCP://SERVER/B.local:5022" can not be reached or does not exist.Error: 1418--========================================================Using the below scripts on the Registered Server section to diagnose the problem I am now perplexed.All the results which come back as exactly the same on both instances--========================================================SELECT EP.name, SP.STATE,CONVERT(nvarchar(38), suser_name(SP.grantor_principal_id))AS GRANTOR,SP.TYPE AS PERMISSION,CONVERT(nvarchar(46),suser_name(SP.grantee_principal_id))AS GRANTEEFROM sys.server_permissions SP , sys.endpoints EPWHERE SP.major_id = EP.endpoint_idORDER BY Permission,grantor, grantee;SELECT * FROM sys.database_mirroring_endpoints;--========================================================
↧