UNIERP.사원정보조회.sql

 

Checked : Windows 8 (VHD), Microsoft SQL Server 2008 Standard.

 

http://support.microsoft.com/kb/956214/ko/

 

Windows 8 (VHD) 가상디스크 사용시

MSSMS (SQL관리툴, Microsoft SQL Server Management Studio) 에서

특정 SQL서버에 접속시 아래 첫번째 화면과 같이 오류가 발생할 경우,

통신/서버 모두 점검을 해 보았으나, 정상이고, 다른 PC에서는 정상 접속이 된다고 하면,

최종적으로 사용자 PC의 레지스트리 편집기를 실행하여 (RegEdit.exe)

아래 두번째 화면과 같이 해당 서버의 주소를 삭제하거나,

데이터값에서 연결포트 지정 부분인 ", 1433"을 제거하면 정상 접속이 되는 경우가 있습니다.

 

발생 원인은 아직 알아내지 못하였고, 해당 레지스트리를 삭제해도 다시 살아나는 경우가 있으니 참고하세요.

 

 

'MS-SQL' 카테고리의 다른 글

WITH (CTE : Common Table Expression) 사용 예제  (0) 2013.12.10
컬럼(COLUMN) 정보 조회  (0) 2013.12.10
로그파일 축소하기  (0) 2013.12.09
MS-SQL 테이블 소유자 변경하기  (0) 2013.11.20
DB 서버명 변경  (0) 2013.11.15

Checked :  Windows Server 2012.

 

도메인 컨트롤러 연결 오류시

제일 먼저, 아래 화면과 같이 윈도우 서비스의 "Netlogon" 이 정상 실행되고 있는지 확인해야 합니다.

그 다음은 "DCDIAG.exe" 툴을 사용하여 서비스 테스트를 진행합니다.

(예) DCDIAG /TEST:DNS

 

 

PowerSupply 정상 여부를 간단하게 테스트하는 방법은

사무용 Clip으로 [14 : Power-ON] 과 [16 : GND] 를 연결후 전원을 공급해 보면

FAN 이 정상적으로 회전하는지 여부로 판단하시면 됩니다.


 

ATX.24pin.Power.Connector.xlsx

 

'Hardware' 카테고리의 다른 글

USB Cable  (0) 2015.07.24
Samsung 노트북 (ATIV Book Series) 에 윈도우 7 설치시 BIOS 설정  (0) 2015.07.09
DVI포트 종류  (0) 2015.05.15

Checked :  MS-SQL 2008.

 

 

USE [DB명]

GO


EXEC sp_changeobjectowner '개체명(xxx.Table)', '소유자(dbo)';

'MS-SQL' 카테고리의 다른 글

WITH (CTE : Common Table Expression) 사용 예제  (0) 2013.12.10
컬럼(COLUMN) 정보 조회  (0) 2013.12.10
로그파일 축소하기  (0) 2013.12.09
MSSMS 에서 특정 SQL 서버 접속 오류시  (0) 2013.12.06
DB 서버명 변경  (0) 2013.11.15

Cisco Catalyst 2950 Switch 기본 정보 변경 명령어 입니다.

 

Switch> enable

Switch# configure terminal

Switch(config)# enable password cisco  // enable 모드 암호 설정.

 

Switch(config)# interface vlan1

Switch(config-if)# ip address 000.000.000.000 255.255.255.0  // 장비 관리용 IP주소 설정.

Switch(config-if)# no shutdown

Switch(config-if)# exit

Switch(config)# ip default-gateway 000.000.000.1  // 장비 기본 게이트웨이 주소 설정.

 

Switch(config)# ip http server  // 장비 관리용 웹콘솔 활성화.

 

Switch(config)# line vty 0 4  // Telnet 모드.

Switch(config-line)# password cisco  // Telnet 접속 암호 설정.

Switch(config-line)# exit

Switch(config)# end

Switch# write memory  // 설정값 저장.

Switch# exit

 

Checked : MSSQL 2008.

 

 

DB명 변경이 아닙니다. DB 서버명 변경입니다.

DB가 설치된 서버의 이름을 변경하였을 경우, DB에서도 서버명을 수정해 줘야 합니다.

 

> EXEC sp_helpserver  // 현재 서버 정보 확인.

> SELECT @@SERVERNAME  // 현재 서버명 확인.

 

> EXEC sp_dropserver '현재 서버명'  // 현재 서버명 삭제.

> EXEC sp_addserver '신규 서버명', 'local'  // 신규 서버명 등록.

 

> EXEC sp_helpserver // 변경된 서버 정보 확인.

 

> MS-SQL Server 서비스 재시작.

 

> EXEC sp_helpserver  // 변경된 서버 정보 확인.

> SELECT @@SERVERNAME  // 변경된 서버명 확인.

// 장비 전면 <MODE> 버튼을 누른 채, 뒷면 전원 케이블을 연결합니다.

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950C-24 starting...
Base ethernet MAC Address: 00:0f:90:81:98:00
Xmodem file system is available.

The system has been interrupted prior to initializing the
flash filesystem.  The following commands will initialize
the flash filesystem, and finish loading the operating
system software:

    flash_init
    load_helper
    boot

switch: flash_init

Initializing Flash...
flashfs[0]: 78 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 5982208
flashfs[0]: Bytes available: 1759232
flashfs[0]: flashfs fsck took 7 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4

switch: load_helper

switch: boot

Loading "flash:/c2950-i6q4l2-mz.121-19.EA1c.bin"...#############################
################################################################################
################################################################################
################################################################################
#####################

File "flash:/c2950-i6q4l2-mz.121-19.EA1c.bin" uncompressed and installed, entry
point: 0x80010000
executing...

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706

 

Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(19)EA1c, RELEASE SOFTWARE
 (fc2)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 02-Feb-04 23:29 by yenanh
Image text-base: 0x80010000, data-base: 0x8058A000


Initializing flashfs...
flashfs[1]: 78 files, 3 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 7741440
flashfs[1]: Bytes used: 5982208
flashfs[1]: Bytes available: 1759232
flashfs[1]: flashfs fsck took 7 seconds.
flashfs[1]: Initialization complete.
Done initializing flashfs.
POST: System Board Test : Passed
POST: Ethernet Controller Test : Passed
ASIC Initialization Passed

POST: FRONT-END LOOPBACK TEST : Passed
cisco WS-C2950C-24 (RC32300) processor (revision P0) with 20808K bytes of memory
.
Processor board ID FOC0814W0T4
Last reset from system-reset
Running Enhanced Image
26 FastEthernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0F:90:81:98:00
Motherboard assembly number: 73-5750-13
Power supply part number: 34-0965-01
Motherboard serial number: FOC081409Z7
Power supply serial number: DAB08135KRN
Model revision number: P0
Motherboard revision number: A0
Model number: WS-C2950C-24
System serial number: FOC0814W0T4

         --- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: n

 

Press RETURN to get started!


Switch>enable

Switch#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]y[OK]
Erase of nvram: complete

Switch#delete vlan.dat
Delete filename [vlan.dat]? y
Delete flash:y? [confirm]y
%Error deleting flash:y (No such file or directory)

Switch#reload
Proceed with reload? [confirm]y
00:01:51: %SYS-5-RELOAD: Reload requested

C2950 Boot Loader (C2950-HBOOT-M) Version 12.1(11r)EA1, RELEASE SOFTWARE (fc1)
Compiled Mon 22-Jul-02 17:18 by antonino
WS-C2950C-24 starting...
Base ethernet MAC Address: 00:0f:90:81:98:00
Xmodem file system is available.
Initializing Flash...
flashfs[0]: 77 files, 3 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 7741440
flashfs[0]: Bytes used: 5981184
flashfs[0]: Bytes available: 1760256
flashfs[0]: flashfs fsck took 7 seconds.
...done initializing flash.
Boot Sector Filesystem (bs:) installed, fsid: 3
Parameter Block Filesystem (pb:) installed, fsid: 4
Loading "flash:/c2950-i6q4l2-mz.121-19.EA1c.bin"...#############################
################################################################################
################################################################################
################################################################################
#####################

File "flash:/c2950-i6q4l2-mz.121-19.EA1c.bin" uncompressed and installed, entry
point: 0x80010000
executing...

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706

 

Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(19)EA1c, RELEASE SOFTWARE
 (fc2)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 02-Feb-04 23:29 by yenanh
Image text-base: 0x80010000, data-base: 0x8058A000


Initializing flashfs...
flashfs[1]: 77 files, 3 directories
flashfs[1]: 0 orphaned files, 0 orphaned directories
flashfs[1]: Total bytes: 7741440
flashfs[1]: Bytes used: 5981184
flashfs[1]: Bytes available: 1760256
flashfs[1]: flashfs fsck took 7 seconds.
flashfs[1]: Initialization complete.
Done initializing flashfs.
POST: System Board Test : Passed
POST: Ethernet Controller Test : Passed
ASIC Initialization Passed

POST: FRONT-END LOOPBACK TEST : Passed
cisco WS-C2950C-24 (RC32300) processor (revision P0) with 20808K bytes of memory
.
Processor board ID FOC0814W0T4
Last reset from system-reset
Running Enhanced Image
26 FastEthernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:0F:90:81:98:00
Motherboard assembly number: 73-5750-13
Power supply part number: 34-0965-01
Motherboard serial number: FOC081409Z7
Power supply serial number: DAB08135KRN
Model revision number: P0
Motherboard revision number: A0
Model number: WS-C2950C-24
System serial number: FOC0814W0T4

         --- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: n

 

Press RETURN to get started!


00:00:14: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan
00:00:18: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(19)EA1c, RELEASE SOFTWARE
 (fc2)
Copyright (c) 1986-2004 by cisco Systems, Inc.
Compiled Mon 02-Feb-04 23:29 by yenanh
00:00:21: %LINK-5-CHANGED: Interface Vlan1, changed state to administratively do
wn
00:00:22: %LINK-3-UPDOWN: Interface FastEthernet0/24, changed state to up
Switch>
00:00:22: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state t
o down
00:00:23: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, chan
ged state to down
00:00:24: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, chan
ged state to up

Switch>enable

Switch#config terminal

Enter configuration commands, one per line.  End with CNTL/Z.

Switch(config)#enable password cisco
Switch(config)#end
Switch#write memory

Checked : Exchange Server 2007 Standard.

 

 

Exchange Server 2007 을 설치한 후, 관리 콘솔을 실행하면 스팸방지 기능 탭이 없습니다.

스팸방지 기능을 사용하기 위해서는 Exchange 관리 셸(Shell)에서 아래와 같이 설정합니다.

 

① [PS] %ProgramFiles%\Microsoft\Exchange Server\Scripts\install-AntispamAgents.ps1

② 윈도우 서비스 > Microsoft Exchange Transport  > 다시 시작.

Checked : Windows Server 2012.

 

가상 디스크 또는 Ghost 파일을 이용하여 운영체제를 복제했을 경우,

GUID 충돌로 인해 ActiveDirectory 등의 네트워크 서비스가 안되는 경우가 있다.

이때에는 다음과 같이 운영체제를 초기화 해 준다. (사용자 프로필 초기화 됨)

 

① 실행 > sysprep

② "일반화" Check

③ 시스템 초기화후 Rebooting.

 

 

 

Checked : Windows Server 2003 R2, Windows Server 2012.

 

 

① cmd

dcdiag // 도메인 컨트롤러 간의 모든 복제 오류를 검사.

repadmin // 두 복제 파트너 사이의 오류 확인.

 

 Checked : Windows 8, Windows Server 2012.

 

윈도우 8 이상 설치시 반드시 체크해야 할 보안 옵션입니다.

 

단일 계정 사용시 윈도우 8 에서 계정 이름을 변경한 후 재부팅을 하게 되면,

로그인 화면에서는 변경 전의 ID가 보이고, ID를 직접 입력해서 로그인 할 수도 없는 경우가 발생합니다.

ID를 직접 입력하지 못하면, 영원히 로그인 할 수 없는 문제가 있습니다.

 

로그인 화면에서 변경된 ID를 입력가능하게 하려면,

계정 이름 변경전에 보안 옵션을 수정하셔야 합니다.

 

만약 보안 옵션을 수정하기도 전에 계정 이름을 변경후, 재부팅을 시켰다면,

다른 컴퓨터에서 원격데스크톱으로 원격 접속 후, 보안 옵션을 수정하거나,

기존 계정 이름으로 복구하시면 됩니다.

 

① cmd

gpedit.msc

③ 로컬 그룹 정책 편집기 > 로컬 컴퓨터 정책 > 컴퓨터 구성 > Windows 설정 > 보안 설정 > 로컬 정책

    > 보안 옵션 > 대화형 로그인: 마지막 사용자 이름 표시 안함 > 사용

 

 

Checked : Windows Server 2012

 

① cmd

② netdom computerName %computerName% /Add:신규서버명

③ netdom computerName %computerName% /MakePrimary:신규서버명

④ shutdown -r -t 0

⑤ cmd

⑥ netdom computerName %computerName% /ENUMerate

⑦ netdom computerName %computerNmae% /REMove:기존서버명

⑧ netdom computerName %computerName% /ENUMerate

⑨ exit

 

 

※ 신규서버명 입력 형식 <FQDN> 예:  serverName.domain.com

Checked : Windows 7, Windows 8, Windows Server 2008 R2, Windows Server 2012

 

Windows 7 또는 Windows Server 2008 이 설치되어 있는 PC에

Windows 8 또는 Windows Server 2012 가 설치된 VHD 파일로 부팅을 하기 위해서는

부팅 매니저 파일을 업데이트 해야 합니다.

 

① Windows 7 또는 Windows Server 2008 로 부팅합니다.

② 관리자 모드로 MS-DOS창(명령 프롬프트)을 실행후 " C:\ren bootmgr _bootmgr " 입력.

③ 첨부파일을 압축 해제한후 "\W8.P64\bootmgr" 또는 "\W2012\bootmgr" 파일을 C:\ 에 복사합니다.

④ MS-DOS창(명령 프롬프트)에서 " C:\attrib bootmgr +r +h +s " 입력.

bootmgr.efi 파일도 동일하게 작업해 줍니다. (②~④)

⑤ 부팅 메뉴 관리 프로그램을 이용하여, VHD 파일을 부팅 메뉴에 추가합니다.

 

이제, Windows 재부팅을 하면, VHD 파일로 부팅이 가능해 집니다.

 

 

bootmgr.zip

 

 

Checked : Windows XP

 

Office 2003 SP3에 의해 차단되는 파일 형식과 이러한 파일 형식을 사용할 수 있도록

설정하는 방법입니다. 아래 링크 주소를 클릭하세요.

 

http://support.microsoft.com/kb/938810

 

// 원래대로 차단하는 Registry 복구 파일입니다.

Restore.Blocking.zip

 

// 차단 해제를 위한 Registry 적용 파일입니다.

Unblock.zip

 

 

Checked : Windows XP, Windows 7, Windows 8

 

 

Windows Registry Editor Version 5.00

 

[HKEY_CURRENT_USER\Control Panel\Keyboard]
"InitialKeyboardIndicators"="2"
"KeyboardSpeed"="31"
"KeyboardDelay"="1"

Checked : Excel 2013

 

 

① 수식

    = "DATE :  " & TEXT(NOW(), "yyyy" & "-" & "mm" & "-" & "dd" & " (" &  "aaa" & ")")

 

② 결과값

    DATE :  2013-09-06 (금)

Checked : Exchange Server 2007.

 

[PS] Get-CASMailbox

[PS] Get-CASMailbox > C:\CASMailbox.txt

 

 

Checked : (Android 4.1.2 버전에서는 설정 메뉴를 찾을수 없었음)

 

안드로이드(갤럭시S) 스마트폰에서

Exchange 이메일을 설정해서 사용하고 있을 경우

보안방침상 인터넷 공유(핫스팟) 가 기본 차단됩니다.

 

핫스팟을 사용하기 위해서는

<환경설정> → <장소 및 보안> → <기기 관리자> → <이메일> 을 해제한후,

핫스팟 기능을 켜면 됩니다.

 

핫스팟을 사용한 후에는 위 보안항목을 다시 활성화 해 줘야

정상적인 이메일 사용이 가능합니다.

 

보안 활성화 방법은 핸드폰 상단의 알림표시줄에 보안항목 활성화 여부가 뜨는데,

클릭해서 활성화 시켜 주면 됩니다.

 

Checked : Windows XP

 

// 관리자 권한으로 실행.

① 명령 프롬프트 (MS-DOS)

 

// 윈도우 업데이트 서비스 중지.

② C:\net stop wuauserv (윈도우 업데이트 서비스 중지)

 

// 폴더명 변경

③ C:\ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

 

// 윈도우 업데이트 서비스 재시작.

④ C:\net start wuauserv

 

// 명령 프롬프트 종료.

⑤ C:\exit

 

⑥ 윈도우 업데이트 재시도.

Checked : Windows XP, 7, 8

 

// 명령 프롬프트 에서 실행.

 

① C:\tasklist /svc > C:\tasklist.txt

 

② C:\netstat -abno > C:\netstat.txt

 

③ C:\notepad C:\tasklist.txt

 

④ C:\notepad C:\netstat.txt

'Windows' 카테고리의 다른 글

키보드 NumLock 키 자동 On  (0) 2013.09.06
Windows Update error 0x8024800A  (0) 2013.07.23
가상 프린터 설치 오류 시 조치 방법  (0) 2013.07.23
Windows 8 설치후 정품 인증 받기 ①  (0) 2013.07.23
Windows XP 환경 변수  (0) 2013.07.23

Checked : Windows XP.

 

doPDF 등의 인쇄 프로그램 설치시 가상 프린터가 정상적으로 설치되지 않을 경우에는

 

// 아래 파일을 복사해서 

① C:\WINDOWS\system32\wbem\framedyn.dll

 

// 다음 위치로 붙여넣기 합니다.

② C:\WINDOWS\system32\

 

③ 가상 프린터를 재설치 합니다.

Checked : Outlook 2007, 2010

 

// Exchange 서버 설정이 한글로 지정되어 있음에도 불구하고,

// Outlook 사서함 폴더명이 영문으로 나오는 경우에 한글로 변경하고 싶다면....

 

① 시작 > 실행

 

outlook /resetfoldernames

Checked : Windows 8

 

① 명령 프롬프트 // 관리자 권한으로 실행.

 

② C:\slmgr /ipk {SerialKey}  // 윈도우 정품 인증키 등록.

 

어제 = 작일(昨日)

오늘 = 금일(今日)

내일 = 명일(明日)

 

전일(前日) // 일정한 시기를 기준으로, 그 시기의 이전 시기.

당일(當日) // 일이 있는 바로 그날.

익일(翌日) // 어떤 날의 그 다음의 날.

'기본상식' 카테고리의 다른 글

(작성중) 제사 지내는 순서  (0) 2014.08.09
부가세 계산식 (계산법)  (0) 2014.07.31
숫자  (0) 2013.07.16

Checked : Windows XP

 

 // 모든 사용자 계정에 적용되는 프로파일 경로.

%AllUserProfile% ▶ C:\Documents and Settings\All Users\

 

//

%AppData% ▶ C:\Documents and Settings\Administrator\Application Data\

 

//

%CommonProgramFiles% ▶ C:\Program Files\Common Files\

 

// 운영체제.

%OS% ▶

 

// Application이 설치될 기본 경로.

%ProgramFiles% ▶ C:\Program Files\

 

// 윈도우가 설치된 경로 (버전별로 다를 수 있음)

%SystemRoot% ▶ C:\Windows\

%WINDIR%      ▶ C:\Windows\

 

// 윈도우가 설치된 드라이브의 루트 경로.

%SystemDrive% ▶ C:\

 

// 로그온 사용자 이름.

%UserName% ▶

 

// 로그온 사용자 프로파일 경로.

%UserProfile% ▶ C:\Documents and Settings\User\

%HomePath% ▶ C:\Documents and Settings\User\

Checked : Windows XP, 7, 8.

               Windows Server 2003, 2008, 2012.

 

// 시작 > 실행 > regedit

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]

 

// 새로 만들기 > DWORD 값.

 

① Windows XP, 7, 8... 일 경우.

"AutoShareWks"=dword:00000000

 

② Windows Server 2003, 2008, 2012... 일 경우.

"AutoShareServer"=dword:00000000

일 10^0

십 10^1

백 10^2

천 10^3

만 10^4

억 10^8

조 10^12

경 10^16

해 10^20

자 10^24

양 10^28

구 10^32

간 10^36

정 10^40

재 10^44

극 10^48

항하사 10^52

아승지 10^56

나유타 10^60

불가사의 10^64

..

무량대수 10^68

...

..

.

'기본상식' 카테고리의 다른 글

(작성중) 제사 지내는 순서  (0) 2014.08.09
부가세 계산식 (계산법)  (0) 2014.07.31
날짜(시점)를 나타내는 한자 표현  (0) 2013.07.23

Checked : Windows 8

 

Windows 재부팅시

무선 네트워크가 자동으로 연결 되지 않을 경우에는

 

// 시스템에 구성되어 있는 무선 네트워크 프로필 목록을 확인.

① C:\netsh wlan show profiles

 

// 무선 네트워크 프로필을 모두 제거.

② C:\netsh wlan delete profile name=*

 

// 수동으로 무선 네트워크 접속 설정.

③ 제어판 > 네트워크 및 공유 센터 > 새 연결 또는 네트워크 설정.

+ Recent posts