Solved

MS SQL 2005 query governor

Posted on 2006-07-19
4
982 Views
Last Modified: 2012-06-21
If i check the "use query governor to prevent long running queries" and set a time limitunder  Connections in the SQL server properties of the MS SQL SErver Management studio - will this kill the queries that are causing blocking and/or become blocked when they exceed the running time?
0
Comment
Question by:martini60123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 12

Expert Comment

by:Einstine98
ID: 17143895
good question, well, yes but I never tested it ;-)
0
 
LVL 3

Expert Comment

by:chhapia_chintak
ID: 17143904
Query governor setting simply does not execute the query. It detects the problem BEFORE it occurs.
0
 
LVL 12

Expert Comment

by:Einstine98
ID: 17143949
hey... that's true... but such an unused feature in my domain!!!! it works based on the estimated excution time (not actual).
0
 
LVL 27

Accepted Solution

by:
ptjcb earned 250 total points
ID: 17145591
Yes, chhapia_chintak is right - the query governor will estimate how long the query will take to produce results and it will not run the query if it is longer than your proposed time.  This can be a saving grace for those ad hoc queries but if a query legitimately needs to run long then it will not run at all. Be prepared.

For blocks and deadlocks you could add Try/Catch to your stored procs - this link will give some examples: http://www.sql-server-performance.com/art_deadlock_sql_2005.asp
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question