Showing posts with label experience. Show all posts
Showing posts with label experience. Show all posts

Wednesday, March 28, 2012

Poor performance

Hello Gurus,

SQL Server 2000
Windows 2003 Server, Standard Edition.

Firstly I'm not a SQL server DBA but have a little experience with
Oracle 9i and Oracle Rdb.

An application that I've inherited has started performing very very
slowly over the last few days, as far as I know there have been no
modifications or changes in the volume of data the db is holding. The
database is in simple logging mode and it's updated twice per day from
and Oracle Rdb database.

The SQL database is all in the primary filegroup and is sat on four
disks (RAID mirrored) which form one logical disk of 128gb. It
consists of approx 120 tables, each with a primary key and a number of
unique indicies per table.

Apart from a twice a day update in the small hours the only access to
this database is read only. Users are connecting via the web and
using predefined Crystal reports to retrieve data.

Questions then:

Should this db have more than one filegroup and should I put the
indicies in a different group? Is this relevant when the underlying
storage is RAID?

Should it be using mirrored RAID or should it be striped or should I
steer clear of RAID for a database?

The indicies have not been rebuilt for some time (probably one year).
Is this something I should be doing once per day/week as I do have the
downtime window?

Should I be doing a database/table reorg at fairly regular intervals?

I'm going to generate a workload file from SQL profiler and see what,
in conjunction with the Index tuning wizard it suggests.

Appreciate that poor performance & tuning is a huge subject and not an
exact science but any tips or comments would be gratefully received.

Regards
Dave.David Gray (police@.spamcop.net) writes:
> An application that I've inherited has started performing very very
> slowly over the last few days, as far as I know there have been no
> modifications or changes in the volume of data the db is holding. The
> database is in simple logging mode and it's updated twice per day from
> and Oracle Rdb database.

But as data is added to he database, statistics changes, and the
optimizer may come to different conclusions about query plans. Sometimes
to the worst.

> Should this db have more than one filegroup and should I put the
> indicies in a different group? Is this relevant when the underlying
> storage is RAID?
> Should it be using mirrored RAID or should it be striped or should I
> steer clear of RAID for a database?

Since it appears that the database performance has degraded so all at
once, I doubt that hardware configuration is the right medicine.

> The indicies have not been rebuilt for some time (probably one year).
> Is this something I should be doing once per day/week as I do have the
> downtime window?

Absolutely!

> Should I be doing a database/table reorg at fairly regular intervals?

That is actually the same thing as rebuilding indexes, at least as long
as you rebuild the clustered indexes.

Note that if you have tables without clustered indexes, they cannot
be rebuild by other means than creating a clustered index and then
dropping it. (Thus it's a good idea to have a clustered index on every
table.)

> I'm going to generate a workload file from SQL profiler and see what,
> in conjunction with the Index tuning wizard it suggests.

That may be a good idea anyway, because about every database has its
own set of poorly indexed queries. But I would expect a DBCC DBREINDEX
on all tables to have considerable effect.

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

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||Your indexes probably got a lot of fragmentations due to the twice daily
updates over time. You can use DBCC SHOWCONTIG to find out the degree of
fragmentation. I'd strongly suggest you to rebuild all the indexes if they
haven't been rebuilt for one year. Afterwards you should consider to
schedule periodical index reorg/defrag tasks to keep the fragmentation at a
low level.

--
Gang He
Software Design Engineer
Microsoft SQL Server Storage Engine

This posting is provided "AS IS" with no warranties, and confers no rights.
"David Gray" <police@.spamcop.net> wrote in message
news:1r6j319sk4nnfahn3dsbgs7la3d9q5hkcr@.4ax.com...
> Hello Gurus,
> SQL Server 2000
> Windows 2003 Server, Standard Edition.
> Firstly I'm not a SQL server DBA but have a little experience with
> Oracle 9i and Oracle Rdb.
> An application that I've inherited has started performing very very
> slowly over the last few days, as far as I know there have been no
> modifications or changes in the volume of data the db is holding. The
> database is in simple logging mode and it's updated twice per day from
> and Oracle Rdb database.
> The SQL database is all in the primary filegroup and is sat on four
> disks (RAID mirrored) which form one logical disk of 128gb. It
> consists of approx 120 tables, each with a primary key and a number of
> unique indicies per table.
> Apart from a twice a day update in the small hours the only access to
> this database is read only. Users are connecting via the web and
> using predefined Crystal reports to retrieve data.
> Questions then:
> Should this db have more than one filegroup and should I put the
> indicies in a different group? Is this relevant when the underlying
> storage is RAID?
> Should it be using mirrored RAID or should it be striped or should I
> steer clear of RAID for a database?
> The indicies have not been rebuilt for some time (probably one year).
> Is this something I should be doing once per day/week as I do have the
> downtime window?
> Should I be doing a database/table reorg at fairly regular intervals?
> I'm going to generate a workload file from SQL profiler and see what,
> in conjunction with the Index tuning wizard it suggests.
> Appreciate that poor performance & tuning is a huge subject and not an
> exact science but any tips or comments would be gratefully received.
> Regards
> Dave.
>

Monday, March 26, 2012

Polyserve versus MSCS (Microsoft Cluster Server)

Hello All,

I would like to compare the MSCS with Polyserve's solution and thus wondering if anyone has an experience using both or knows -

    What are the major differences between the two? What are the limitations? What are the advantages and disadvantages? Which is advisable to use as a HA solution?

Any other information which may help me to make this decision would be appreciated.

Thanks in advance for your help!

~Managar

In my experience both are different, when you think about server consolidation then PS is best one to chose.

http://searchsqlserver.techtarget.com/polyserveResourcePage/0,295274,sid87,00.html

Friday, March 23, 2012

pointers for a rookie?

Howdy all. I start a new DBA job next week and part of it will invlove Data
Warehousing. I have no experience in DW at all and dont think there are any
shortcuts to learning it. Between now and then, what would be some good key
fundamentals for me to learn of Analysis Services? Is dont really need/ want
to learn really in depth stuff at this point. I more want to just try to get
a firm understanding on the basics and give myself a good base to learn
from.
TIA, ChrisRI suggest you look through the AS 'Analysis Manager and Concepts Tutorial'
in AS Manager.
It was the first thing i did a year ago and it got me off to a flyer.
The tutorial was very good, which is a first for Microsoft ;)
Try and post back if you need more pointers, but i'm sure others will offer
useful suggestions too.
Immy
"ChrisR" <noemail@.bla.com> wrote in message
news:eS9ehpOrFHA.1168@.TK2MSFTNGP11.phx.gbl...
> Howdy all. I start a new DBA job next week and part of it will invlove
> Data Warehousing. I have no experience in DW at all and dont think there
> are any shortcuts to learning it. Between now and then, what would be some
> good key fundamentals for me to learn of Analysis Services? Is dont really
> need/ want to learn really in depth stuff at this point. I more want to
> just try to get a firm understanding on the basics and give myself a good
> base to learn from.
> TIA, ChrisR
>|||Chris,
Focus on cube partitioning, so read all you can about DSO and setting the
data slice for each partition in a cube.
In my opinion, it's the most important concept to grasp in Analysis Services
.
HTH,
Jim
"Imtiaz Ullah" wrote:

> I suggest you look through the AS 'Analysis Manager and Concepts Tutorial'
> in AS Manager.
> It was the first thing i did a year ago and it got me off to a flyer.
> The tutorial was very good, which is a first for Microsoft ;)
> Try and post back if you need more pointers, but i'm sure others will offe
r
> useful suggestions too.
> Immy
> "ChrisR" <noemail@.bla.com> wrote in message
> news:eS9ehpOrFHA.1168@.TK2MSFTNGP11.phx.gbl...
>
>sql

pointers for a rookie?

Howdy all. I start a new DBA job next week and part of it will invlove Data
Warehousing. I have no experience in DW at all and dont think there are any
shortcuts to learning it. Between now and then, what would be some good key
fundamentals for me to learn of Analysis Services? Is dont really need/ want
to learn really in depth stuff at this point. I more want to just try to get
a firm understanding on the basics and give myself a good base to learn
from.
TIA, ChrisR
I suggest you look through the AS 'Analysis Manager and Concepts Tutorial'
in AS Manager.
It was the first thing i did a year ago and it got me off to a flyer.
The tutorial was very good, which is a first for Microsoft ;)
Try and post back if you need more pointers, but i'm sure others will offer
useful suggestions too.
Immy
"ChrisR" <noemail@.bla.com> wrote in message
news:eS9ehpOrFHA.1168@.TK2MSFTNGP11.phx.gbl...
> Howdy all. I start a new DBA job next week and part of it will invlove
> Data Warehousing. I have no experience in DW at all and dont think there
> are any shortcuts to learning it. Between now and then, what would be some
> good key fundamentals for me to learn of Analysis Services? Is dont really
> need/ want to learn really in depth stuff at this point. I more want to
> just try to get a firm understanding on the basics and give myself a good
> base to learn from.
> TIA, ChrisR
>
|||Chris,
Focus on cube partitioning, so read all you can about DSO and setting the
data slice for each partition in a cube.
In my opinion, it's the most important concept to grasp in Analysis Services.
HTH,
Jim
"Imtiaz Ullah" wrote:

> I suggest you look through the AS 'Analysis Manager and Concepts Tutorial'
> in AS Manager.
> It was the first thing i did a year ago and it got me off to a flyer.
> The tutorial was very good, which is a first for Microsoft ;)
> Try and post back if you need more pointers, but i'm sure others will offer
> useful suggestions too.
> Immy
> "ChrisR" <noemail@.bla.com> wrote in message
> news:eS9ehpOrFHA.1168@.TK2MSFTNGP11.phx.gbl...
>
>

Tuesday, March 20, 2012

Plz explain

Experience with clustering and SAN storage technologies
Can any one explain about the above lines
thanks
NOOR
Hi
Look on www.microsoft.com/sql
There are white papers on clustering. also look at
http://www.microsoft.com/windowsserv...lustering.mspx
Regards
Mike
"Noor" wrote:

> Experience with clustering and SAN storage technologies
>
> Can any one explain about the above lines
> thanks
> NOOR
>
>

Friday, March 9, 2012

Please, a SQL trigger question!

Hi! I have no experience at all using triggers, and I don't even know
very well SQL server. I hope someone can help me with the folling: I
need to know if it is possible to implement a trigger that monitors
the value of an specific field, and when it changes the value from 0
to 1 it should update the value of another field in another table but
after some arithmetic operations. The arithmetics operations involves
data within the same database.

Is this can be made using triggers and stored procedures?Of course it can!

Look for this key words in SQL BOL: triggers, after, 'if update', inserted tables, deleted tables.

--
Dean Savovic
www.teched.hr

"Alejandro" <alejandro_ceja@.yahoo.com.mx> wrote in message news:85729932.0311041500.64581e86@.posting.google.c om...
> Hi! I have no experience at all using triggers, and I don't even know
> very well SQL server. I hope someone can help me with the folling: I
> need to know if it is possible to implement a trigger that monitors
> the value of an specific field, and when it changes the value from 0
> to 1 it should update the value of another field in another table but
> after some arithmetic operations. The arithmetics operations involves
> data within the same database.
> Is this can be made using triggers and stored procedures?|||Yes it can.

Personally Id recommend against it as I believe triggers to be the
very personal work of satan.

They can be quite slow - specially on heavy load tables, and have a
bad habit of hiding away and getting lost when you move the
database...

But yes - sure you can do that.

alejandro_ceja@.yahoo.com.mx (Alejandro) wrote in message news:<85729932.0311041500.64581e86@.posting.google.com>...

> Is this can be made using triggers and stored procedures?|||Hi

SQL server does not have the ability to create a trigger on an
individual column
but you can check that a column has changed within a trigger but
either comparing the values for that column in the inserted and
deleted or possibly the COLUMNS_UPDATED clause (Although a column can
be updated it may not be to a different value!).

See the "CREATE TRIGGER" topic in Books Online or at:
http://msdn.microsoft.com/library/d...reate2_7eeq.asp

The examples given in this topic also who how to update other tables.

HTH

John

alejandro_ceja@.yahoo.com.mx (Alejandro) wrote in message news:<85729932.0311041500.64581e86@.posting.google.com>...
> Hi! I have no experience at all using triggers, and I don't even know
> very well SQL server. I hope someone can help me with the folling: I
> need to know if it is possible to implement a trigger that monitors
> the value of an specific field, and when it changes the value from 0
> to 1 it should update the value of another field in another table but
> after some arithmetic operations. The arithmetics operations involves
> data within the same database.
> Is this can be made using triggers and stored procedures?

Wednesday, March 7, 2012

Please Need Help

Hi all,

I am new to SQL server. I just installed SQL Server express and Visual Web Developer Express edition.

I have experience in SQL but I need some tutorial about how to use SQL Server and create tables and make queries. I can't find any exact location in Microsoft website about SQL Server express documentation where i can find beginner's resources.

Can anyone please give me the location.

Thanks

HI,

You will find a demo on SQL Express at the following link under "Product Resources" that will be a good starting point:

http://www.microsoft.com/sql/editions/express/default.mspx

Also, check out the article "Get Started with SQL Server Express" at http://msdn.microsoft.com/sql/express/

Express documentation is available at http://www.microsoft.com/downloads/details.aspx?familyid=9697aaaa-ad4b-416e-87a4-a8b154f92787&displaylang=en

Thanks,

Sonal

Please Need Help

Hi all,

I am new to SQL server. I just installed SQL Server express and Visual Web Developer Express edition.

I have experience in SQL but I need some tutorial about how to use SQL Server and create tables and make queries. I can't find any exact location in Microsoft website about SQL Server express documentation where i can find beginner's resources.

Can anyone please give me the location.

Thanks

HI,

You will find a demo on SQL Express at the following link under "Product Resources" that will be a good starting point:

http://www.microsoft.com/sql/editions/express/default.mspx

Also, check out the article "Get Started with SQL Server Express" at http://msdn.microsoft.com/sql/express/

Express documentation is available at http://www.microsoft.com/downloads/details.aspx?familyid=9697aaaa-ad4b-416e-87a4-a8b154f92787&displaylang=en

Thanks,

Sonal