2012-08-03 2 views
1

미러링을 위해 SQL Server가 구성되었습니다. 초기 서버가 오늘 실패했고 거의 모든 응용 프로그램이 VB.NET 응용 프로그램을 제외하고 제대로 실패했습니다. 그것이 내가 다음과 같은 오류가 연결 문자열을 설정하는 시작되면지원되지 않는 키워드 : VB.NET의 '장애 조치 파트너 : sql-failover; 초기 카탈로그'

:

여기
"Keyword not supported: 'failover partner:sql-failover;initial catalog'." 

코드가 연결되어

Dim sConnectionString As String 
    Dim sServer As String 

    Try 
     'Always connect to production server to get startup environment variables 
     If gbIsProduction Then 
      If gsProductionServer = "" Then 
       sServer = "PROD-SQL" 
      Else : sServer = gsProductionServer 
      End If 
     Else : sServer = gsDevelopmentServer 
     End If 
     sConnectionString = "Data Source=" & sServer & ";Failover Partner:SQL-FAILOVER;Initial Catalog=*****;User ID=****;Password=******;" 
     cnSystem.ConnectionString = sConnectionString 
     cnSystem.Open() 
     cmdSystem.Connection = cnSystem 
    Catch ex As Exception 
     RaiseError("", "modGeneral." & System.Reflection.MethodBase.GetCurrentMethod().Name, Err.Number, Err.Description) 

모든 이유를? 페일 오버 파트너는 .NET 1.1에서 지원되지 않지만 프레임 워크 3.5 SP1을 사용하고 있습니다.

감사합니다.

답변

3

연결 문자열의이 부분은 그냥 감사 것을보고,

....;Failover Partner:SQL-FAILOVER;..... 

....;Failover Partner=SQL-FAILOVER;...... 
+0

그래해야 잘못된 것입니다. 이제 연결 문자열의 유효성은 올바르게 확인되지만 장애 조치 서버로 전달되지는 않습니다. 페일 오버가 작동하려면 초기 서버에 한 번 성공적으로 연결해야합니까? – Tom

+0

[이] (http://support.microsoft.com/kb/941526) 문서가 도움이 될지 모르겠다. – Steve