'connection string'에 해당되는 글 1건

  1. 2014.07.10 SQL Server connection strings

SQL Server connection strings

DATABASE/SQL Server 2014. 7. 10. 16:07

SQL Connection String 중 눈여겨 볼만한 내용은 Failover Partner 라는 부분이다.

SQL Server 를 Mirror 방식으로 운영중이라면 Failover Partner 정보를 넣어서 메인 SQL Server 에 문제가 있을 경우 Mirror SQL Server 로 연결해준다.

Database mirroring

If you connect with ADO.NET or the SQL Native Client to a database that is being mirrored, your application can take advantage of the drivers ability to automatically redirect connections when a database mirroring failover occurs. You must specify the initial principal server and database in the connection string and the failover partner server.

Data Source=myServerAddress;Failover Partner=myMirrorServerAddress;
Initial Catalog
=myDataBase;Integrated Security=True;

There is ofcourse many other ways to write the connection string using database mirroring, this is just one example pointing out the failover functionality. You can combine this with the other connection strings options available.


SQL Server 2005 / 2008 / 2012 에 해당하며 자세한 내용은 출처 URL 을 참고하면 된다.


출처 : http://www.connectionstrings.com/sql-server-2012/


: