SQL Server의 배치를 조회하는 쿼리.SELECT [jobs].name as [jobname] , description , CASE convert(nvarchar(3),[sSCH].[enabled]) WHEN 1 THEN N'Y' WHEN 0 THEN N'N' END AS [IsEnabled] , CASE WHEN convert(nvarchar(3),[freq_type],3) = 64 THEN N'SQL Server 시작 시 마다' WHEN convert(nvarchar(3),[freq_type],3) = 128 THEN N'서버가 유휴 할때마다' WHEN convert(nvarchar(3),[freq_typ..
[DB] SQL SERVER
1. Microsoft Official Documenthttps://techcommunity.microsoft.com/t5/azure-database-support-blog/msg-3930-level-16-state-1-line-13-the-current-transaction-cannot/ba-p/3766378 Msg 3930, Level 16, State 1, Line 13 The current transaction cannot be committedMsg 3930, Level 16, State 1, Line 13The current transaction cannot be committed and cannot support operations that write to the log file. Roll ..
Mircrosoft Cluster Service cluster verification errors 관련 Bug 설치 진행시에 Cluster 버그 발생하여 무시하고 시작할 수 있도록 cmd 명령어로 실행.iso 설치파일 mount 후, 해당 디스크로 이동하여 명령어 실행. 1번 NODE 설치 진행1) 설치 시작1st node : CMD → Setup /SkipRules=Cluster_VerifyForErrors /Action=InstallFailoverCluster 2) 설치 진행 SQL Server Network Name : Cluster Server 도메인 입력Qualified 에 빨간색이 뜨는게 정상입니다. 서비스에 종속시킬 Disk 선택 화면Cluster 전환 시 해당 Disk 들도 함께 전환됨 I..
MSCS 환경에서 SQL Server 설치를 위한 환경설정 1) Window Server의 공유 폴더 확인 IPC$만 확인되어 패치/설치/업그레이드 수행 시 C$, ADMIN$가 공유되어야함. 2) C$ 공유 net share C$=C:\ 3) ADMIN$ 공유 시작 메뉴 > 실행 또는 Win+R > regedit Path : HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\LanmanServer\\Parameters DWORD 32 bit로 AutoShareServer를 추가하고 1로 지정 후, 서버 재부팅 3) 위 두 과정을 완료 후, 공유 확인 4) Remote Registry 서비스 활성화 https://kwomy.tistory.com/136 ..
MSCS 환경에서 SQL Server Upgrade Error SQL Server Setup failure. SQL Server Setup has encountered the following error: Failed to retieve data for this request. 1) Log 확인 C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\ 에 있는로그를 보도록 하겠습니다. Exception summary: The following is an exception stack listing the exceptions in outermost to innermost order Inner exceptions are being indented Except..
SQL Server에서 각 계정의 패스워드 변경 일자 확인 쿼리 SELECT name id, default_database_name DB, case type when 'S' then 'SQL 로그인' when 'U' then 'Window 로그인' when 'G' then 'Window Group 로그인' end 계정구분, create_date 계정최초생성일, modify_date 계정설정변경일, LOGINPROPERTY(name, 'PasswordLastSetTime') 패스워드변경일, DATEDIFF(DD, CONVERT(SMALLDATETIME, LOGINPROPERTY(name, 'PasswordLastSetTime')), GETDATE()) 패스워드사용일수 FROM sys.server_princ..