'Optimizor'에 해당되는 글 1건

  1. query governor cost limit

query governor cost limit


http://technet.microsoft.com/ko-kr/library/ms191219.aspx
http://technet.microsoft.com/en-us/magazine/dd421653.aspx
http://vstarmanv.tistory.com/90
http://sqltimes.wordpress.com/2011/09/20/use-query-governor-to-prevent-long-running-queries/


이런 옵션도 있구만,, 쿼리 관리자 비용 제한 설정... 쿼리 실행 제한 시간에 대한 상한 값을 지정.
쿼리를 완료하는 데 필요한 예상 소요 시간(초)


--방법1)
SET QUERY_GOVERNOR_COST_LIMIT value


--방법2)
USE AdventureWorks2012 ;
GO
EXEC sp_configure 'show advanced options', 1;
GO
RECONFIGURE ;
GO
EXEC sp_configure 'query governor cost limit', 120 ;
GO
RECONFIGURE;
GO



세션단위 : SET QUERY_GOVERNOR_COST_LIMIT 옵션은 실행 시간 또는 런타임에 설정