Link to home
Start Free TrialLog in
Avatar of David_Pazos
David_PazosFlag for Switzerland

asked on

Unable to mirror a database in mode sync full

Hello,

I'm trying to mirror a database which is hosted by a SQL Server 2008 R2 on another SQL Server 2008 R2 which is not in a domain. The database is set in full mode and I'm trying to mirror it on this new server but it returns an error at the end.

I've backup the database on the source server as well as the logs and imported them on the new server in NO RECOVERY mode.

The connection between the servers seems to be just fine, there isn't any firewall between them but I still got this error message after the wizard ends and I don't understand why :

*Alter Failed for Database 'Test'. An exception occured while executing a Transact-SQL statement or batch. The network address TCP://10.0.2.40:5022" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational"

Any ideas ?
Kind Regards,
David

PS : There is no witness server. Is it mandatory to have one?
Avatar of Daniel_PL
Daniel_PL
Flag of Poland image

Did you enable tcp/ip protocol in sql server configuration manager on both servers? Are remote connections enabled?
While connecting outside domain you need to use sql authentication with sql account so mixed authentication need to be enabled.
Avatar of David_Pazos

ASKER

Hi Daniel_PL and thanks for your message.

Everything was set as you mentioned. Only the Named/Pipes is not activated on one of the servers and the VIA on both of them. Could that be the reason of my problem?

Kind Regards,
David
Hello again, I've activated the named Pipes, restarted the services and still the same problem...

any ideas are welcome )
David
No, don't use named pipes. TCP/IP is best protocol for this.
You can't use GUI because of no integrated security, you need t-sql. Try this approach:
http://msdn.microsoft.com/en-us/library/ms191140.aspx

About mirroring:
http://www.devproconnections.com/article/sql-server/Database-Mirroring-in-SQL-Server-2008-and-SQL-Server-2008-R2/1.aspx
Daniel_PL, thanks for your message.

I was a bit worried to try your solution, so I tried to create another SQL server in same VLAN, same domain, same sa account, and guess what, the error is the same.... Did I missed something? Is it mandatory to do that T-SQL security each time we want to do a mirroring sync???

Kind Regards,
David
ASKER CERTIFIED SOLUTION
Avatar of Daniel_PL
Daniel_PL
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Daniel_PL and thanks for your support. I think our problem is really special. I guess that all the problem becomes from our log backup. It might be corrupted or wrong and it makes all that problems with the connection. So, I'll try to find a way to rebuild the logs.

At least, your procedure to do it is really clear and I give you the points for sure.

Thanks again for your help.

Kind Regards,
David