It's not clear which way you are creating the linked server:
If it is from the primary->third server then you will need to create the linked server on both the principal and mirror since it does not automatically failover (it's defined at the instance level and not the database level).
If it is from the third server->primary then ensure you set the failover partner property in the linked server and that the default database is specified (catalog in provider speak). For example
EXEC master.dbo.sp_addlinkedserver
@.server = N'matthol11',
@.srvproduct=N'',
@.provider=N'SQLNCLI',
@.catalog=N'test',
@.provstr=N'Server=matthol11;FailoverPartner=matthol6;'
select*from matthol11.test.dbo.test
Regards,
Matt
No comments:
Post a Comment