Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL 2005 Performance

 
   Database Help (Home) -> Server RSS
Next:  Inner Query Coalesce Causes Incorrect Query Resul..  
Author Message
mwebb

External


Since: Mar 21, 2010
Posts: 1



(Msg. 1) Posted: Sun Mar 21, 2010 9:54 am
Post subject: SQL 2005 Performance
Archived from groups: microsoft>public>sqlserver>server (more info?)

We have a win2003 domain with two win2003 servers that host a large SQL 2005
database. For some time we (users/sys admin) have been very disapointed in
the performance of the database whichs uses a client-server setup for
healthcare records. I am a system admin for the hospital.

This week we are running a "stress test" to try and determine if the
performance problem is related to the hardware/network or the design of the
SQL database. I have setup counters on the servers that measure the
performance of the processor, memory, network and hard drives. The admin that
works the SQL database has setup counters specfic to SQL.

Question: What will give us the best clue(s) as to where the primary
preformance issue lies (hardware/operating system or database?
--

 >> Stay informed about: SQL 2005 Performance 
Back to top
Login to vote
Jay Konigsberg

External


Since: Mar 09, 2010
Posts: 5



(Msg. 2) Posted: Sun Mar 21, 2010 10:59 am
Post subject: Re: SQL 2005 Performance [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In addition to Erland's comment, I would suggest running the SQL Profiler. I
understand that you don't understand the software, however, you seem like
you're in-tune enough to get some value from the default templates. There is
also a decent SQL Server Books On-Line page:

http://msdn.microsoft.com/en-us/library/ms187929.aspx

The advantage here is that you can look from inside the database and you
should be able to get some useful information within a half day.

Good luck,
Jay

--
Jay Konigsberg
SQL Server DBA in Sacramento, CA
http://www.linkedin.com/in/jaykonigsberg

Live in Sacramento, CA?
Join the Sacramento SQL Server User Group on LinkedIn
http://www.linkedin.com/groups?home=&gid=2825448&trk=anet_ug_hm&goback=%2Emyg



"mwebb" wrote in message

> We have a win2003 domain with two win2003 servers that host a large SQL
> 2005
> database. For some time we (users/sys admin) have been very disapointed in
> the performance of the database whichs uses a client-server setup for
> healthcare records. I am a system admin for the hospital.
>
> This week we are running a "stress test" to try and determine if the
> performance problem is related to the hardware/network or the design of
> the
> SQL database. I have setup counters on the servers that measure the
> performance of the processor, memory, network and hard drives. The admin
> that
> works the SQL database has setup counters specfic to SQL.
>
> Question: What will give us the best clue(s) as to where the primary
> preformance issue lies (hardware/operating system or database?
> --
>

 >> Stay informed about: SQL 2005 Performance 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 2061



(Msg. 3) Posted: Sun Mar 21, 2010 2:25 pm
Post subject: Re: SQL 2005 Performance [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

mwebb (mwebb@discussions.microsoft.com) writes:
> We have a win2003 domain with two win2003 servers that host a large SQL
> 2005 database. For some time we (users/sys admin) have been very
> disapointed in the performance of the database whichs uses a
> client-server setup for healthcare records. I am a system admin for the
> hospital.
>
> This week we are running a "stress test" to try and determine if the
> performance problem is related to the hardware/network or the design of
> the SQL database. I have setup counters on the servers that measure the
> performance of the processor, memory, network and hard drives. The admin
> that works the SQL database has setup counters specfic to SQL.
>
> Question: What will give us the best clue(s) as to where the primary
> preformance issue lies (hardware/operating system or database?

Let me put it this way: the odds are very good that the the main issue
lies in how the database is designed or accessed. That is not to say
that an unfortunate hardware design can cause problems as well. But
there is so much more potential to really screw things up with poor
physical design and bad queries.

Therefore I would in an initial phase concentrate on the queries only.
Exactly how depends on the nature of the application. If the application
uses stored procedures only, I would simply collect SQL:BatchCompleted
and RPC:Completed for some time and aggregate to see which procedures
that takes most time and resources.

If the application does not use stored procedures, aggregation is more
difficult, particularly if the application does not parameterise the
queries. Then again, if it doesn't, you try to turn on force
parameterisation for the database. That may make wonders. (Even if
this setting is a cover-up for a bad application design.)

There are also DMV (dynamic management views) that can give a load of
information to determine where things go bad.

It is only when I've found that there are no major issues in the
database or application design that I would start to look at the
hardware. The prime suspect when it comes hardware is often the SAN.
SANs are far from always optimised for database applications, and a
poorly implemented SAN can perform a lot worse than DAS, Directly
Attached Storage.

Finally, it cannot be deined that sometimes it's cheaper to throw
hardware on a poor design than changing the application. (Then again,
fixing the database may be as simple to add a couple of indexes.)


--
Erland Sommarskog, SQL Server MVP, esquel.TakeThisOut@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
 >> Stay informed about: SQL 2005 Performance 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 2061



(Msg. 4) Posted: Sun Mar 21, 2010 7:25 pm
Post subject: Re: SQL 2005 Performance [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jay Konigsberg (spam@nospam.org) writes:
> In addition to Erland's comment, I would suggest running the SQL Profiler.

Just a word of caution here: Profiler is a great tool to quick monitoring,
and if you have not worked with tracing at all before, it is a good
start.

However, beware that using Profiler rather than a server-side trace takes
far more resources, so if you want to do some long-term monitoring, server-
side trace is a must. (One hour is definitely long-term.)


--
Erland Sommarskog, SQL Server MVP, esquel DeleteThis @sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
 >> Stay informed about: SQL 2005 Performance 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Poor Performance after upgrading from 2000 to 2005 - I have a problem that I hope someone will be able to provide some insite into, or some tips to help me. We recently upgraded databases on an SQL server 2000 to an SQL 2005 server. The hardware on both machines is exactly the same. The SQL 2000 machine...

SQL Server 2005 performance problem with duration - I have a problem with a system that has run just fine on SQL Server 7.0 and 2000, but causes performance problems on 2005, because the duration on 2005 is much higher, while the CPU usage and reads/writes are about the same. The 2005 machine is new, wit...

Stored Procedure reduced performance in SQL server 2005 - Hello All, I have a problem regarding stored procedure execution. Recently we migrated from SQL Server 2000 to 2005 and our application from .Net Framework 1.1 to 3.5. We have a stored procedure which returns search results on execution given some..

SQL Server 2005 - Performance - Writing stored procedure i.. - I have a stored procedure which is having multiple cursors. These cursors are affecting the performance of SP. With SQL Server 2005 we can write the SP in C#. If I replace those cursors with for/while loop of C# code then will there be any performanc...

STANDARD 2005 vs. ENTERPRISE 2005 - Hello All, We currently run SQL Server 2000 Enterprise Edition. Due to costs, we want to purchase the STANDARD Edition, when we are ready to move from 2000 to 2005. Before doing that, I want to make sure we can make that transition without problems....
   Database Help (Home) -> Server All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]