Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
T-SQL (SS2K8)
»
STATEMENT LEVEL RECOMPILATION
11 posts, Page 1 of 2
1
2
»»
STATEMENT LEVEL RECOMPILATION
Rate Topic
Display Mode
Topic Options
Author
Message
Anu-923127
Anu-923127
Posted Wednesday, March 24, 2010 1:23 AM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, July 21, 2010 5:56 AM
Points: 21,
Visits: 73
HELLO TEAM, I need a help on statement level recompile (syntax level) that can implement in sql server 2005/2008
Post #888720
HowardW
HowardW
Posted Wednesday, March 24, 2010 3:43 AM
Ten Centuries
Group: General Forum Members
Last Login: Today @ 6:16 AM
Points: 1,035,
Visits: 7,673
Hi,
Probably best off looking up Query Hints in BOL:
http://msdn.microsoft.com/en-us/library/ms181714.aspx
It's pretty straight forward
Post #888774
Paul White
Paul White
Posted Wednesday, March 24, 2010 5:34 AM
SSChampion
Group: General Forum Members
Last Login: Yesterday @ 7:18 PM
Points: 10,989,
Visits: 10,532
Everything anyone ever needs to know about compilation and recompilation:
http://msdn.microsoft.com/en-us/library/cc966425.aspx#XSLTsection127121120120
That link will take you to the section on statement-level recompilation.
Paul White
SQL Server MVP
SQLblog.com
@SQL_Kiwi
Post #888829
Anu-923127
Anu-923127
Posted Wednesday, March 24, 2010 5:56 AM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, July 21, 2010 5:56 AM
Points: 21,
Visits: 73
Thanks!!!
Still I could n't the thread of Statement Level Recompilation in the specified link
Post #888839
r.dragoi-1095738
r.dragoi-1095738
Posted Wednesday, March 24, 2010 7:00 AM
Grasshopper
Group: General Forum Members
Last Login: Today @ 1:40 AM
Points: 19,
Visits: 914
Maybe you are looking for something like this:
SELECT TOP (10) *
FROM table
OPTION (HASH Join , recompile)
-- or just simple: OPTION (recompile)
Post #888913
Paul White
Paul White
Posted Wednesday, March 24, 2010 7:16 AM
SSChampion
Group: General Forum Members
Last Login: Yesterday @ 7:18 PM
Points: 10,989,
Visits: 10,532
r.dragoi-1095738 (3/24/2010)
Maybe you are looking for something like this:
SELECT TOP (10) *
FROM table
OPTION (HASH Join , recompile)
-- or just simple: OPTION (recompile)
What's the HASH JOIN hint for? There's no join.
Paul White
SQL Server MVP
SQLblog.com
@SQL_Kiwi
Post #888934
r.dragoi-1095738
r.dragoi-1095738
Posted Wednesday, March 24, 2010 7:23 AM
Grasshopper
Group: General Forum Members
Last Login: Today @ 1:40 AM
Points: 19,
Visits: 914
In my own query I had a few more tables, but it can used just like I said OPTION (Recompile)
Post #888941
Paul White
Paul White
Posted Wednesday, March 24, 2010 7:30 AM
SSChampion
Group: General Forum Members
Last Login: Yesterday @ 7:18 PM
Points: 10,989,
Visits: 10,532
Anu-923127 (3/24/2010)
Still I could n't the thread of Statement Level Recompilation in the specified link
The link takes you straight to it...?
Paul White
SQL Server MVP
SQLblog.com
@SQL_Kiwi
Post #888952
GilaMonster
GilaMonster
Posted Wednesday, March 24, 2010 7:34 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 6:47 AM
Points: 37,698,
Visits: 29,960
r.dragoi-1095738 (3/24/2010)
In my own query I had a few more tables, but it can used just like I said OPTION (Recompile)
Still begs the question, why are you forcing hash joins?
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #888959
r.dragoi-1095738
r.dragoi-1095738
Posted Wednesday, March 24, 2010 7:49 AM
Grasshopper
Group: General Forum Members
Last Login: Today @ 1:40 AM
Points: 19,
Visits: 914
We have some data warehouse applications and some tables which are not indexed etc , in such cases we use it.
Post #888972
« Prev Topic
|
Next Topic »
11 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.