2015년 9월 3일 목요일

C# GUID



GUID : 사용할 수 있는 값의 수가 2120  임으로 적절한 알고리즘이 있다면 같은 값을 두번 생성 할 가능성은 매우 적다.

생성방법 :
    GUID guid = GUID.NewGuid()


출력예(36자) : 95267ea6-5bfe-47db-8794-7e08404672c3

2015년 9월 2일 수요일

OLE DB provider SQLNCLI11 for linked server unable to begin distributed transaction.


1. Start\Administrative Tools\Component Services

   - Right click on the Local DTC
   - Select Security tab, 아래 두번째 이미지에서와 같이 체크하고 OK.




2. Control Panel\Windows Firewall\Allow an app or feature through Windows Farewall
   - Check Distributed Transaction Coordinator (Private & Public)