SQL DATETIME 변환
0 Feb 22 2006 4:26PM CONVERT(CHAR(19), CURRENT_TIMESTAMP, 0)1 02/22/06 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 1)2 06.02.22 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 2)3 22/02/06 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 3)4 22.02.06 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 4)5 22-02-06 CONVERT(CHAR(8), CURRENT_TIMESTAMP, 5)6 22 Feb 06 CONVERT(CHAR(9), CURRENT_TIMESTAMP, 6)7 Feb 22, 06 CONVERT(CHAR(10), CURRENT_TIME..
2009. 10. 7.
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.