Application redirection Failover partner

제안된 답변 Application redirection Failover partner

  • 2008년 12월 15일 월요일 오전 11:15
     
      코드 있음
    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=&quot;Data Source=uldbtest;Initial Catalog=dbvtls;Persist Security Info=True;User ID=usrvtls;Password=usr@#vtls;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
      </connectionStrings>




    Ismailhaider

모든 응답

  • 2008년 12월 17일 수요일 오전 5:02
    중재자
     
     제안된 답변

    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
    • 답변으로 제안됨 slickj 2012년 10월 25일 목요일 오후 8:33
    •  
  • 2008년 12월 17일 수요일 오후 5:23
     
     
    "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 write


    When 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
  • 2008년 12월 17일 수요일 오후 6:50
    중재자
     
     
    Good 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
  • 2008년 12월 17일 수요일 오후 6:59
     
     
    My 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
  • 2009년 1월 14일 수요일 오전 3:46
    중재자
     
     
    Ismailhaider,

    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
  • 2011년 2월 23일 수요일 오전 10:20
     
     

    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=&quot;Data Source=COMPUTER\SQLEXPRESS;Initial Catalog=MyCatalog;Integrated Security=True;Pooling=False;MultipleActiveResultSets=True&quot;"
          providerName="System.Data.EntityClient" />

    </connectionStrings>

     

    would become

     


    <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" />

    </connectionStrings>
  • 2011년 2월 23일 수요일 오후 2:01
     
     

    Looks like SID issue, Did login created with same SID on both principle and mirror servers

  • 2011년 3월 14일 월요일 오전 9:30
     
     
    Any updates please
  • 2011년 3월 14일 월요일 오후 4:56
     
     
    Issue resolved
    Ismailhaider
  • 2011년 3월 14일 월요일 오후 8:16
     
     

    Great Stuff

  • 2012년 1월 30일 월요일 오후 8:46
     
     

    Hi Ismail

    Can you please tell us how you resolved this issue? What changed you made?

     Thanks