Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Performance Tuning


Performance Tuning

Author
Message
IsaacGoGo
IsaacGoGo
SSC Rookie
SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)

Group: General Forum Members
Points: 32 Visits: 51
Comments posted here are about the content posted at temp



Edwin Vermeer
Edwin Vermeer
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 1
Don't forget to download the chapter 28 from the book. It's 48 pages about performance tuning.
Bill Scrivener
Bill Scrivener
Grasshopper
Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)

Group: General Forum Members
Points: 23 Visits: 74

When I try to execute

select object_name(object_id),
index_id,
index_type_desc,
avg_fragmentation_in_pct
from sys.dm_db_index_physical_stats(db_id(),null,null,null,'limited')

on my server, I get the following error:

Server: Msg 102, Level 15, State 1, Line 5
Incorrect syntax near '('.

Anybody else having this problem? If you can, please reply to bscrivener@hcad.org. Thanks.


noeld
noeld
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6796 Visits: 2048
That error is because you are probably connected to a database that has compatibility level set to 8.0 (2000) instead of 9.0 (2005)

Cheers,




* Noel
omhoge
omhoge
Mr or Mrs. 500
Mr or Mrs. 500 (570 reputation)Mr or Mrs. 500 (570 reputation)Mr or Mrs. 500 (570 reputation)Mr or Mrs. 500 (570 reputation)Mr or Mrs. 500 (570 reputation)Mr or Mrs. 500 (570 reputation)Mr or Mrs. 500 (570 reputation)Mr or Mrs. 500 (570 reputation)

Group: General Forum Members
Points: 570 Visits: 183

Actually this is more of a web site comment.

Because of the layout style there's no way for me to view the ends of all the sentances. Even with IE full screen the right side is cut off. This happens a lot.

eg "Data warehouse designs, on the othe" [... hidden text...] "Star or Snowflake design" or "As ragmentation increases, data will become spread out over mo" [... hidden text...] "your query needs to retrieve, the slower the query." Whole sentances inbetween are missing.

An unfortunate disservice to an article the 2/3rds of which I could read looks very interesting.

This is a great site and I've come here for a couple years but the unconstrained content area is really frustrating. If this happens to you please join me in patient occasional reminders to the busy guys who run SSC. I'll chime in again about it in a few months, this is my third one.

To their credit there is no other site on earth I'm willing to read via view source.

just my 2c



Skål - jh
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)

Group: General Forum Members
Points: 51541 Visits: 40305
None of the bullets in the article include one of the most important aspects of performance tuning there is... one, that if not present, will bring the most robust hardware and all other tuning methods right to its knees. It's usually overlooked, it's usually given the least time to accomplish, and it seems it's been "mastered" by only an elite relative few...

...writing good solid high performance set based scalable code to begin with. Wink

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Wink

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
Jeff Moden
Jeff Moden
SSC Guru
SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)SSC Guru (51K reputation)

Group: General Forum Members
Points: 51541 Visits: 40305
I just started going through the free chapter... glad to see there's some consideration for writing good code in there... maybe there's more in the rest of the book, but most of the tuning recommendations revolve around hardware, indexes, and a couple of things to avoid like unnecessary ORDER BY's... all of which are mute points in the presence of real crap code.

The chapter also seems to have a high implication for GUI interfaced code... not much on batch code where the really big performance problems creep in. That fact is exemplified by the demo of sp_ExecuteSQL which really only benefits the necessary repetative RBAR nature of GUI code.

--Jeff Moden

RBAR is pronounced ree-bar and is a Modenism for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column.
Although they tell us that they want it real bad, our primary goal is to ensure that we dont actually give it to them that way.
Although change is inevitable, change for the better is not.
Just because you can do something in PowerShell, doesnt mean you should. Wink

Helpful Links:
How to post code problems
How to post performance problems
Forum FAQs
viorel.ruicu
viorel.ruicu
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 85
try this:
"SELECT * FROM sys.databases WHERE compatibility_level < 90"
and u'll see the database that has compatibility level set to 8.0

a good day,
Vio
muthukkumaran Kaliyamoorthy
muthukkumaran Kaliyamoorthy
Ten Centuries
Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)Ten Centuries (1.4K reputation)

Group: General Forum Members
Points: 1389 Visits: 4892
noeld (10/25/2006)
That error is because you are probably connected to a database that has compatibility level set to 8.0 (2000) instead of 9.0 (2005)

Cheers,

<img src='images/emotions/smile.gif' height='20' width='20' border='0' title='Smile' align='absmiddle'>


Nope the DMV will work even its compatibility level set to 80.

Muthukkumaran Kaliyamoorthy

Helping SQL DBAs and Developers >>>SqlserverBlogForum

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search