Application redirection Failover partner
-
Monday, December 15, 2008 11:15 AM
Hi..
I am using Entity framework model . so how I write to redirect my application failover partner to my Mirror server.
This is my connetion String,
<connectionStrings>
<add name="VLTSLog" connectionString="Data Source=uldbtest;Initial Catalog=VTLSLogDB;Persist Security Info=True;User ID=usrvtls;Password=usr@#vtls"
providerName="System.Data.SqlClient" />
<add name="VTLSExceptionHandling" connectionString="Data Source=uldbtest;Initial Catalog=VTLSEXceptionDB;Persist Security Info=True;User ID=usrvtls;Password=usr@#vtls"
providerName="System.Data.SqlClient" />
<add name="CampaignEntities" connectionString="metadata=res://*/CampaignModel.csdl|res://*/CampaignModel.ssdl|res://*/CampaignModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=uldbtest;Initial Catalog=dbvtls;Persist Security Info=True;User ID=usrvtls;Password=usr@#vtls;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient" />
</connectionStrings>
Ismailhaider
All Replies
-
Wednesday, December 17, 2008 5:02 AMModerator
Hi Ismailhaider,
You can use the "Failover Partner" connection string attribute. For instance:
"Data Source=uldbtest;Initial Catalog=VTLSLogDB;Persist Security Info=True;User ID=usrvtls;Password=usr@#vtls;
providerName=System.Data.SqlClient;Failover Partner=MyMirrorServer"
Does this help?
Aaron Alton | thehobt.blogspot.com- Proposed As Answer by slickj Thursday, October 25, 2012 8:33 PM
-
Wednesday, December 17, 2008 5:23 PM"Data Source=uldbtest;Failover Partner=MyMirrorServe;Initial Catalog=VTLSLogDB;Persist Security Info=True;User ID=usrvtls;Password=usr@#vtls;
providerName=System.Data.SqlClient"
If i wirte Data Source=uldbtest;Failover Partner=MyMirrorServ then its writeWhen I start fail over, My Event viewer on Mirror server ,when application wants to redirect on mirror, Its says Login fail for 'softechus\vtlsdb$'Why, I have no user this type of in my server .
Ismailhaider -
Wednesday, December 17, 2008 6:50 PMModeratorGood question - I don't have any idea why you're receiving that error. Might be a mixup in the sids, but I woudn't expect it to try to log in with the wrong ID. Does the login (with the password that you've specified) exist on the mirror server? Can you manually log in using that information?
Aaron Alton | thehobt.blogspot.com -
Wednesday, December 17, 2008 6:59 PMMy principal datbase server name is 'VTLSDB' , and and I failover the server, In Mirror server, application tries to coonect database on mirror
Event viewer says, Login failed Softechus\vtlsdb$ Softechus is my domain name, and vtlsdb is my server name and also my database name of principal server, But I havent this type of login in Principal server, My aplication login Id sa and paassword=' I manually create this login and password on mirror with the same name and password, I think my Instance dastabase vtlsdb$ want to access other server ,but I addes this on Mirror server Softechus\vtlsdb$ and have sysadmin rights, But Its didnt works and raise same time of error in Event viewer
Ismailhaider -
Wednesday, January 14, 2009 3:46 AMModeratorIsmailhaider,
Did you get your issue resolved? I didn't see your response until now (the alerts are still a bit patchy). Please let me know - if you still need help, I'll try to get a few others to look at your problem.
Aaron Alton | thehobt.blogspot.com -
Wednesday, February 23, 2011 10:20 AM
Hello,
I have an application using Entity Framework 4.
I was wondering if it was possible to use SQL Server 2008 R2 mirroring with Entity Framework 4 connection string.
I Suppose i only need to add Failover Partner in the
Provider Connection String property ? Am i right ?
<connectionStrings>
<add name="BDDContainer" connectionString="metadata=res://*/BDD.csdl|res://*/BDD.ssdl|res://*/BDD.msl;provider=System.Data.SqlClient;provider connection string="Data Source=COMPUTER\SQLEXPRESS;Initial Catalog=MyCatalog;Integrated Security=True;Pooling=False;MultipleActiveResultSets=True""
providerName="System.Data.EntityClient" /></connectionStrings>
would become
</connectionStrings>
<connectionStrings>
<add name="BDDContainer" connectionString="metadata=res://*/BDD.csdl|res://*/BDD.ssdl|res://*/BDD.msl;provider=System.Data.SqlClient;provider connection string="Data Source=COMPUTER\SQLEXPRESS;Initial Catalog=MyCatalog;Integrated Security=True;Pooling=False;MultipleActiveResultSets=True;FAILOVER PARTNER=myFailOverPartner"
providerName="System.Data.EntityClient" /> -
Wednesday, February 23, 2011 2:01 PM
Looks like SID issue, Did login created with same SID on both principle and mirror servers
-
Monday, March 14, 2011 9:30 AMAny updates please
-
Monday, March 14, 2011 4:56 PMIssue resolved
Ismailhaider -
Monday, March 14, 2011 8:16 PM
Great Stuff
-
Monday, January 30, 2012 8:46 PM
Hi Ismail
Can you please tell us how you resolved this issue? What changed you made?
Thanks

