Microsoft Internet Information Services (IIS) is either not installed or is disabled. IIS is required by some SQL Server features. Without IIS, some SQL Server features will not be available for installation. To install all SQL Server features, install IIS from Add or Remove Programs in Control Panel or enable the IIS service through the Control Panel if it is already installed, and then run SQL Server Setup again. For a list of features that depend on IIS, see Features Supported by Editions of SQL Server in Books Online.
옵션을 다시 추가적으로 설정해 줍니다.
--> Web management tools
--> IIS 6 Management Compatibility
--> IIS 6 WMI Compatibility
--> IIS Metabase and IIS 6 configuration compatibility
Try this
1. Open the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet
\Services\msftesql
2. Rename the value DependOnService to anything
3. Restart the server
여기서
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\msftesql
위 레지스트리를 찾아 보면 값이 "RPCSS NTLMSSP"
로 되어있는데요...
이값을 단순히 수정만 하지마시고
"RPCSS" 만 남기시던...
하셔야 합니다.
전 잘못되면 다시 복구시킬 요량으로
"RPCSS NTLwoojjaMSSP" 요런 식으로 수정해 놨더니만..
그래도 같은 Error 를 내 뱉더군요...
그래서 아예 RPCSS 만 남겨놨죠... ㅋㅋ
그랬더니 잘 실행되는 군요...
이유를 더 찾아 보니..
SQL Server 의 FullText Search 서비스는 실행할때 NTLMSSP (NTLM Security Support Provider)
이 넘을 이용해서 사용자의 권한을 관리자의 권한수준으로 올린다음 실행한다고 하는군요.
그런데 이 서비스는 Vista, Windows Server 2008 로 올라오면서 사라진 서비스라고 하는 군요.(아마도 UAC 가 있으니 있을 필요가 없어졌겠죠...)
여튼 그런데 없어진 서비스를 찾으면서 에러를 발생시킨 것입니다.
SQL Server 2000 성능 데이터 보기
이 문서가 적용되는 제품 보기.
기술 자료 ID : 283886
마지막 검토 : 2006년 1월 20일 금요일
수정 : 4.1
이 문서는 이전에 다음 ID로 출판되었음: KR283886
이 페이지에서
요약
v_sysperfinfo 보기
v_BufferCacheHitRatio 보기
v_difference 보기
v_Access_methods 보기
v_object_names 보기
본 문서의 정보는 다음의 제품에 적용됩니다.
요약
이 문서에서는 Microsoft 기술 자료의 다음 문서에서 설명하는 작업에서 만든 추적 파일의 성능 데이터를 분석하는 데 사용할 수 있는 보기를 설명합니다.
283696 (http://support.microsoft.com/kb/283696/) INF: SQL Server 2000 성능 및 활동 모니터링 작업
이러한 보기를 만들기 전에 추적 파일을 ActivityTrace라는 SQL Server 2000 테이블로 가져와야 합니다. 저장 프로시저 trace_gettable의 스크립트를 사용하면 추적 파일의 데이터를 SQL Server 2000 테이블로 가져올 수 있습니다. 자세한 내용은 Microsoft 기술 자료의 다음 문서를 참조하십시오.
283784 (http://support.microsoft.com/kb/283784/) INF: SQL Server 2000 작업 데이터를 보는 방법
다음 보기를 사용하여 성능 데이터를 분석합니다. • v_sysperfinfo 보기는 sysperfinfo 테이블에서 추적에 의해 기록된 성능 카운터를 나열합니다.
• v_BufferCacheHitRatio 보기는 버퍼 캐시 적중률을 계산합니다.
• v_difference 보기는 최대 카운터 값과 최소 카운터 값의 차이를 나열합니다.
• v_Access_methods 보기는 액세스 메서드 개체에 대한 모든 카운터를 나열합니다. 다른 카운터를 나열하려면 v_Access_methods 보기의 %:Access Methods%를 다른 개체로 변경합니다.
• v_object_names 보기는 모든 성능 개체 이름을 나열합니다.
v_sysperfinfo 보기
CREATE view v_sysperfinfo as
select top 100 percent
RowNumber,[servername],[starttime]
,substring(TextData, 1,40) as [object_name]
,substring(TextData, 41,40) as [counter_name]
,substring(TextData,81,35) as [instance_name]
,cast(substring(TextData,116,11) as int) as [cntr_value]
from ActivityTrace
where EventClass = 83
order by
substring(TextData, 1,40)
,substring(TextData,41,40)
,substring(TextData,81,35)
,starttime
v_BufferCacheHitRatio 보기
CREATE view v_BufferCacheHitRatio as
select top 100 percent a.starttime
, cast(substring(a.TextData,116,11) as int) as [hits]
, cast(substring(b.TextData,116,11) as int) as [base]
, cast(((cast(substring(a.TextData,116,11) as int) * 100)
/ cast(substring(b.TextData,116,11) as int)) as numeric(6,3))
as [Buffer cache hit ratio]
from ActivityTrace a join ActivityTrace b
on datepart(yy,a.starttime) = datepart(yy,b.starttime)
and datepart(mm,a.starttime) = datepart(mm,b.starttime)
and datepart(dd,a.starttime) = datepart(dd,b.starttime)
and datepart(hh,a.starttime) = datepart(hh,b.starttime)
and datepart(mi,a.starttime) = datepart(mi,b.starttime)
and datepart(ss,a.starttime) = datepart(ss,b.starttime)
and substring(a.TextData,41,27) = N'Buffer cache hit ratio '
and substring(b.TextData,41,27) = N'Buffer cache hit ratio base'
order by a.starttime
위로 가기
v_difference 보기
CREATE view v_difference as
select top 100 percent
substring(TextData, 1,40) as [object_name]
,substring(TextData, 41,40) as [counter_name]
,substring(TextData,81,35) as [instance_name]
,max(cast(substring(TextData,116,11) as int)) as [maximum]
,min(cast(substring(TextData,116,11) as int)) as [minimum]
,max(cast(substring(TextData,116,11) as int))
-min(cast(substring(TextData,116,11) as int)) as [difference]
,count(*) as [count]
,datediff(mi,min(StartTime),max(StartTime)) as [minutes]
from ActivityTrace
where EventClass = 83
group by
substring(TextData, 1,40)
,substring(TextData, 41,40)
,substring(TextData,81,35)
having max(cast(substring(TextData,116,11) as int))
-min(cast(substring(TextData,116,11) as int)) > 0
order by [difference] desc
v_Access_methods 보기
CREATE view v_Access_methods as
select top 100 percent
substring(TextData,41,40) as [counter name]
,left(starttime,20) as [time]
,cast(substring(TextData,116,11) as int) as [counter value]
from ActivityTrace
where substring(TextData,1,40) like '%:Access Methods%'
order by substring(TextData,41,40), starttime
v_object_names 보기
create view v_object_names as
select top 100 percent
substring(TextData,charindex(':',TextData),25) as [object_name]
from ActivityTrace
where EventClass = 83
group by
substring(TextData,charindex(':',TextData),25)
order by [object_name]
Oracle 에만 있던 기능을 찾던 중 2005에서 제공하기 시작한 CTE 기능을 알게 되었습니다.
= 아래 쿼리는 www.datasarang.net사이트에서 발췌했습니다.
WITH MYCAL AS
(
SELECT
CAST('1900-01-01' AS DATETIME) DT
, IDX = 1
UNION ALL
SELECT
DT + 1
, IDX + 1
FROM MYCAL
WHERE
DT + 1 <= '2050-12-31'
)
SELECT
IDX
, [DT]
, [DT_1] = DATEADD(DD, -1, DT)
, [YMD] = CONVERT(CHAR(8), DT, 112)
, [YY] = DATEPART(YEAR, DT)
, [MM] = DATEPART(MONTH, DT)
, [DD] = DATEPART(DAY, DT)
, [WKDAY_SEQ] = DATEPART(DW, DT)
, [QTR] = DATEPART(QQ, DT)
, [ANIMAL] = CASE DATEPART(YEAR, DT) % 12 - 3
WHEN 1 THEN '자' WHEN 2 THEN '축' WHEN 3 THEN '인'
WHEN 4 THEN '묘' WHEN 5 THEN '진' WHEN 6 THEN '사'
WHEN 7 THEN '오' WHEN 8 THEN '미' WHEN 9 THEN '신'
WHEN 10 THEN '유' WHEN 11 THEN '술' WHEN 12 THEN '해' END
FROM MYCAL
OPTION (MAXRECURSION 0)
이 쿼리를 MS SQL 2005 에서 돌려보시기 바랍니다.
저는 위 기능을 이렇게 사용했습니다.
WITH MYCAL AS
(
SELECT
CAST('37001' AS int) DT
, IDX = 1
UNION ALL
SELECT
DT + 1
, IDX + 1
FROM MYCAL
WHERE
DT + 1 <= '87100'
)
insert into insertTest
SELECT
IDX
, DT, cast(IDX as varchar) + '_' + cast(DT as varchar) IDVALUE
FROM MYCAL
OPTION (MAXRECURSION 0)
아핫... ㅋㅋ
5만백건... 단 2초에 들어갑니다.
좋아좋아...
행복한 하루입니다.
행복한 고수되셔요...
woojja ))*
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Datasarang 덕분에 여러번 인서트해야만 했던, 그래서 수만 시간 걸려야 했던 작업을 순식간에 처리할 수 있을 것 같습니다.