x

How can we pass hints to the SQL processor?

How to pass the hints to the SQL processor ? is there a way to do this ?

more ▼

asked Jan 06, 2010 at 10:20 AM in Default

OraLearner gravatar image

OraLearner
1.3k 77 86 88

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

You embed the hint directly in the SQL statement.

For example

SELECT /*+ NO_CPU_COSTING */ emp_name, 
       dpt_name, 
       grd_desc 
  FROM grade, 
       employee, 
       department department1 
 WHERE ...

The /*+ */ syntax starts and stops a hint.

more ▼

answered Jan 06, 2010 at 11:06 AM

HillbillyToad gravatar image

HillbillyToad
1k 2

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x729
x378
x5

asked: Jan 06, 2010 at 10:20 AM

Seen: 1134 times

Last Updated: Jan 06, 2010 at 10:20 AM