linked server 연결(Active Directory)
연결 방법(script) sp_addlinkedserver 'ADSI', 'Active Directory Services 2.5', 'ADSDSOObject', 'adsdatasource' EXEC sp_addlinkedsrvlogin 'ADSI', False, 'SQL_ACCOUNT_NAME','NT_ACCOUNT_NAME', 'PASSWORD' 연결 방법(GUI) openquerySET @SQLString = N'select wWWHomePage, name, ''' + @DeptCode + ''',adspath from openquery(ADSI,'';(objectClass=organizationalUnit);wWWHomePage, name, adspath;oneLevel'') '; openrowse..
2008. 9. 11.