블로그 이미지
보미아빠

카테고리

보미아빠, 석이 (528)
밥벌이 (16)
싸이클 (1)
일상 (1)
Total
Today
Yesterday

달력

« » 2025.8
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

공지사항

최근에 올라온 글

cpu 사용량

카테고리 없음 / 2012. 1. 1. 01:07

alter view cpu_percent
as
select
 top 256 record_id,
 dateadd(ms, -1 * ( (select cpu_ticks / convert(float, ms_ticks) from sys.dm_os_sys_info) - [timestamp]), GetDate()) as EventTime,
 SQLProcessUtilization,
 SystemIdle,
 100 - SystemIdle - SQLProcessUtilization as OtherProcessUtilization
 -- system idle 값과 SQLProcessUtilization 값을 이용해서 SQL 외 cpu 사용율을 계산 합니다.
from (
  select
   record.value('(./Record/@id)[1]', 'int') as record_id,
   record.value('(./Record/SchedulerMonitorEvent/SystemHealth/SystemIdle)[1]', 'int') as SystemIdle,
   record.value('(./Record/SchedulerMonitorEvent/SystemHealth/ProcessUtilization)[1]', 'int') as SQLProcessUtilization,
   timestamp
  from (
   select timestamp, convert(xml, record) as record
   from sys.dm_os_ring_buffers
   where ring_buffer_type = N'RING_BUFFER_SCHEDULER_MONITOR'
   and record like '%<SystemHealth>%'
   ) as x
 ) as y
order by record_id asc
Posted by 보미아빠
, |

Improvements for the DBCC CHECKDB command may result in faster performance when you use the PHYSICAL_ONLY option

sql server 2008r2 cu11 이나 sp1 cu4 를 설치하면 Traceflag 2562 와 2549 를 통해서 physical only 옵션을 사용할 수 있고 이는 꼭 checkdb 를 해서 체크를 해야 하는 경우에는 빠르게 체크 할 수 있다. 보통 checkdb 는 백업/복구를 통해서 다른 서버에서 진행 하는것이 관례이나 어떤 이유에서 실제 서버에서 꼭 해봐야 하는 경우에는 유용 할 수 있다. 

데이터베이스는 너무크고, 리스토어 할 시스템은 없고 주기적으로 일관성체크는 해봐야 하는 시스템에서는 유용할 수 있다.
sql server 2008 용은 내년에 만들어 준단다. (지금은 2011년 12월 31일 입니다.)

http://support.microsoft.com/kb/2634571
Posted by 보미아빠
, |
http://msdn.microsoft.com/en-us/library/ms144259(v=sql.90).aspx#options

다양한 삭제가 가능함.

[REMOVE]

The REMOVE parameter specifies which components to uninstall, like SQL Server, Reporting Services, or Analysis Services. This command must be used in conjunction with the INSTANCENAME parameter. For example, to remove the instance aware component AND any non-instance aware components, such as Client_Components, you would specify the following:

  • REMOVE=All INSTANCENAME=MSSQLSERVER
    ms144259.note(en-US,SQL.90).gifImportant:
    Do not use this parameter if you have several instances installed and you still want to use client tools.

    To remove all non-instance aware components, such as Client_Components and SQL_DTS, specify REMOVE=ALL without reference to the instance name.
    When REMOVE is specified for a new installation, components listed after 'REMOVE=' are not included for installation. For example, to install every component except for Reporting Services components during a new installation specify the following:
    • ADDLOCAL=All REMOVE=RS_Server,RS_Web_Interface

REMOVE can also be used during maintenance to remove components from an existing installation. For example, to remove Full-Text Search, specify the following:

  • REMOVE=SQL_FullText
    ms144259.note(en-US,SQL.90).gifImportant:
    Removing the parent feature removes both the parent and the child feature.

    REMOVE=
    

Posted by 보미아빠
, |

최근에 달린 댓글

최근에 받은 트랙백

글 보관함