MS SQL 에 접속하기 위해서는 MS SQL Server 인증, 그리고 Windows Authentication 인증의 두가지 방법이 있다.

우선, Windows Authentication 은 MS SQL Server 인증과 달리 id, password 를 사용하지 않고, integrated security 라는 항목이 추가된다는 점이 가장 큰 차이점이다. DataSource 문장은 아래와 같다.

"data source=Sql01;initial catalog=Northwind; integrated security=SSPI;persist security info=False; Trusted_Connection=Yes."


예제


'IT > DB' 카테고리의 다른 글

MS SQL Express Edition 의 40 에러 해결방법  (0) 2011.03.05
AND