Showing posts with label drop. Show all posts
Showing posts with label drop. Show all posts

Wednesday, March 28, 2012

Performance gain

How much of a performance gain I can get on 1.2 million rows insert via DTS
package If I,
- Drop 1 clustered and 2 non-clustered index on the table I am loading
- 2-3 foreign keys referencing other tables
- Replace the delete table with truncate table
- Do a bulk insert
- Re-create the indexes
- Re-create the foreign keys
Thanks for any input.
"DXC" <DXC@.discussions.microsoft.com> wrote in message
news:72D6D8E4-6F94-4DB9-A93E-F67F07F3D277@.microsoft.com...
> How much of a performance gain I can get on 1.2 million rows insert via
> DTS
> package If I,
>
Well best way will be to try it. ;-)
BUT, in my experience what you're doing will help.

> - Drop 1 clustered and 2 non-clustered index on the table I am loading
This helps, but mostly if the imported data is already sorted on the
clustered index. Otherwise, rebuilding the clustered index may eat up any
savings.

> - 2-3 foreign keys referencing other tables
> - Replace the delete table with truncate table
HUGE help

> - Do a bulk insert
Definitely faster w/o indices.

> - Re-create the indexes
> - Re-create the foreign keys
>
In general you should see a big improvement, especially if the clustered
index doesn't have to do much data movement.

> Thanks for any input.
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html
|||You have given us too little data to assist you properly. The biggest thing
missing is how many rows are ALREADY in the table and how many rows are in
the referencing tables?
In general if you are inserting an amount that is a reasonably large
fraction of the total rows already in the table, then it is better to
drop/rebuild. But in this case if your table already has a billion rows,
adding 1.2 million would be much faster keeping things as they are.
TheSQLGuru
President
Indicium Resources, Inc.
"DXC" <DXC@.discussions.microsoft.com> wrote in message
news:72D6D8E4-6F94-4DB9-A93E-F67F07F3D277@.microsoft.com...
> How much of a performance gain I can get on 1.2 million rows insert via
> DTS
> package If I,
> - Drop 1 clustered and 2 non-clustered index on the table I am loading
> - 2-3 foreign keys referencing other tables
> - Replace the delete table with truncate table
> - Do a bulk insert
> - Re-create the indexes
> - Re-create the foreign keys
> Thanks for any input.
|||On Thu, 10 May 2007 09:10:01 -0700, DXC
<DXC@.discussions.microsoft.com> wrote:

>How much of a performance gain I can get on 1.2 million rows insert via DTS
>package If I,
>- Drop 1 clustered and 2 non-clustered index on the table I am loading
>- 2-3 foreign keys referencing other tables
>- Replace the delete table with truncate table
>- Do a bulk insert
>- Re-create the indexes
>- Re-create the foreign keys
>Thanks for any input.
Besides two good answers already, how long does it take now?
J.

Performance gain

How much of a performance gain I can get on 1.2 million rows insert via DTS
package If I,
- Drop 1 clustered and 2 non-clustered index on the table I am loading
- 2-3 foreign keys referencing other tables
- Replace the delete table with truncate table
- Do a bulk insert
- Re-create the indexes
- Re-create the foreign keys
Thanks for any input."DXC" <DXC@.discussions.microsoft.com> wrote in message
news:72D6D8E4-6F94-4DB9-A93E-F67F07F3D277@.microsoft.com...
> How much of a performance gain I can get on 1.2 million rows insert via
> DTS
> package If I,
>
Well best way will be to try it. ;-)
BUT, in my experience what you're doing will help.

> - Drop 1 clustered and 2 non-clustered index on the table I am loading
This helps, but mostly if the imported data is already sorted on the
clustered index. Otherwise, rebuilding the clustered index may eat up any
savings.

> - 2-3 foreign keys referencing other tables
> - Replace the delete table with truncate table
HUGE help

> - Do a bulk insert
Definitely faster w/o indices.

> - Re-create the indexes
> - Re-create the foreign keys
>
In general you should see a big improvement, especially if the clustered
index doesn't have to do much data movement.

> Thanks for any input.
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||You have given us too little data to assist you properly. The biggest thing
missing is how many rows are ALREADY in the table and how many rows are in
the referencing tables'
In general if you are inserting an amount that is a reasonably large
fraction of the total rows already in the table, then it is better to
drop/rebuild. But in this case if your table already has a billion rows,
adding 1.2 million would be much faster keeping things as they are.
TheSQLGuru
President
Indicium Resources, Inc.
"DXC" <DXC@.discussions.microsoft.com> wrote in message
news:72D6D8E4-6F94-4DB9-A93E-F67F07F3D277@.microsoft.com...
> How much of a performance gain I can get on 1.2 million rows insert via
> DTS
> package If I,
> - Drop 1 clustered and 2 non-clustered index on the table I am loading
> - 2-3 foreign keys referencing other tables
> - Replace the delete table with truncate table
> - Do a bulk insert
> - Re-create the indexes
> - Re-create the foreign keys
> Thanks for any input.|||On Thu, 10 May 2007 09:10:01 -0700, DXC
<DXC@.discussions.microsoft.com> wrote:

>How much of a performance gain I can get on 1.2 million rows insert via DTS
>package If I,
>- Drop 1 clustered and 2 non-clustered index on the table I am loading
>- 2-3 foreign keys referencing other tables
>- Replace the delete table with truncate table
>- Do a bulk insert
>- Re-create the indexes
>- Re-create the foreign keys
>Thanks for any input.
Besides two good answers already, how long does it take now?
J.

Performance gain

How much of a performance gain I can get on 1.2 million rows insert via DTS
package If I,
- Drop 1 clustered and 2 non-clustered index on the table I am loading
- 2-3 foreign keys referencing other tables
- Replace the delete table with truncate table
- Do a bulk insert
- Re-create the indexes
- Re-create the foreign keys
Thanks for any input."DXC" <DXC@.discussions.microsoft.com> wrote in message
news:72D6D8E4-6F94-4DB9-A93E-F67F07F3D277@.microsoft.com...
> How much of a performance gain I can get on 1.2 million rows insert via
> DTS
> package If I,
>
Well best way will be to try it. ;-)
BUT, in my experience what you're doing will help.
> - Drop 1 clustered and 2 non-clustered index on the table I am loading
This helps, but mostly if the imported data is already sorted on the
clustered index. Otherwise, rebuilding the clustered index may eat up any
savings.
> - 2-3 foreign keys referencing other tables
> - Replace the delete table with truncate table
HUGE help
> - Do a bulk insert
Definitely faster w/o indices.
> - Re-create the indexes
> - Re-create the foreign keys
>
In general you should see a big improvement, especially if the clustered
index doesn't have to do much data movement.
> Thanks for any input.
Greg Moore
SQL Server DBA Consulting Remote and Onsite available!
Email: sql (at) greenms.com http://www.greenms.com/sqlserver.html|||You have given us too little data to assist you properly. The biggest thing
missing is how many rows are ALREADY in the table and how many rows are in
the referencing tables'
In general if you are inserting an amount that is a reasonably large
fraction of the total rows already in the table, then it is better to
drop/rebuild. But in this case if your table already has a billion rows,
adding 1.2 million would be much faster keeping things as they are.
--
TheSQLGuru
President
Indicium Resources, Inc.
"DXC" <DXC@.discussions.microsoft.com> wrote in message
news:72D6D8E4-6F94-4DB9-A93E-F67F07F3D277@.microsoft.com...
> How much of a performance gain I can get on 1.2 million rows insert via
> DTS
> package If I,
> - Drop 1 clustered and 2 non-clustered index on the table I am loading
> - 2-3 foreign keys referencing other tables
> - Replace the delete table with truncate table
> - Do a bulk insert
> - Re-create the indexes
> - Re-create the foreign keys
> Thanks for any input.|||On Thu, 10 May 2007 09:10:01 -0700, DXC
<DXC@.discussions.microsoft.com> wrote:
>How much of a performance gain I can get on 1.2 million rows insert via DTS
>package If I,
>- Drop 1 clustered and 2 non-clustered index on the table I am loading
>- 2-3 foreign keys referencing other tables
>- Replace the delete table with truncate table
>- Do a bulk insert
>- Re-create the indexes
>- Re-create the foreign keys
>Thanks for any input.
Besides two good answers already, how long does it take now?
J.

Friday, March 23, 2012

Performance Counters Missing

My SQL Server 2000 (SP2) performance counters are missing/corrupted. They
seem to be in the Performance COunter drop down, as a series of 4-digit
numbers. The SQL server runs on a active/passive Windows 2000
clusterconfiguration (W2K SP3). I've tried manually reloading them with
lodctr and the sqlctr.ini file looks clean. The other (passive) cluster
node doesn't have them either, but it also doesn't have the odd 4-digit
number entries in the drop down list of counters. Any help would be
appreciated.
PJ
Have you tried this:
http://support.microsoft.com/?kbid=300956
Markus
|||I'll give that a try and get back to the group. Thanks for the suggestion.
PJ
"MarkusB" <m.bohse@.quest-consultants.com> wrote in message
news:1133340824.530847.203620@.g44g2000cwa.googlegr oups.com...
> Have you tried this:
> http://support.microsoft.com/?kbid=300956
> Markus
>
|||Thanks for the suggestion Markus. I tried it, and it got rid of the weird
numbered counters in the Performance Monitor Counter list (except for one,
listed as 0 - ZERO). However, the SQL counters are completely missing ...
any further ideas? Thanks again.
PJ
"MarkusB" <m.bohse@.quest-consultants.com> wrote in message
news:1133340824.530847.203620@.g44g2000cwa.googlegr oups.com...
> Have you tried this:
> http://support.microsoft.com/?kbid=300956
> Markus
>
|||I tried to fathom the recommended article and was completely flummoxed. That
called for some scary registry manipulation in a whole lot of places. Is
there not some way to get a value to plug in just to the 009 branch? I found
a large number of last counter and last help fields throughout the registry
and got scared off. Where does a mere mortal go for help on this?
"msnews.microsoft.com" wrote:

> Thanks for the suggestion Markus. I tried it, and it got rid of the weird
> numbered counters in the Performance Monitor Counter list (except for one,
> listed as 0 - ZERO). However, the SQL counters are completely missing ...
> any further ideas? Thanks again.
> PJ
>
> "MarkusB" <m.bohse@.quest-consultants.com> wrote in message
> news:1133340824.530847.203620@.g44g2000cwa.googlegr oups.com...
>
>
sql

Performance Counters Missing

My SQL Server 2000 (SP2) performance counters are missing/corrupted. They
seem to be in the Performance COunter drop down, as a series of 4-digit
numbers. The SQL server runs on a active/passive Windows 2000
clusterconfiguration (W2K SP3). I've tried manually reloading them with
lodctr and the sqlctr.ini file looks clean. The other (passive) cluster
node doesn't have them either, but it also doesn't have the odd 4-digit
number entries in the drop down list of counters. Any help would be
appreciated.
PJHave you tried this:
http://support.microsoft.com/?kbid=300956
Markus|||I'll give that a try and get back to the group. Thanks for the suggestion.
PJ
"MarkusB" <m.bohse@.quest-consultants.com> wrote in message
news:1133340824.530847.203620@.g44g2000cwa.googlegroups.com...
> Have you tried this:
> http://support.microsoft.com/?kbid=300956
> Markus
>|||Thanks for the suggestion Markus. I tried it, and it got rid of the weird
numbered counters in the Performance Monitor Counter list (except for one,
listed as 0 - ZERO). However, the SQL counters are completely missing ...
any further ideas? Thanks again.
PJ
"MarkusB" <m.bohse@.quest-consultants.com> wrote in message
news:1133340824.530847.203620@.g44g2000cwa.googlegroups.com...
> Have you tried this:
> http://support.microsoft.com/?kbid=300956
> Markus
>|||I tried to fathom the recommended article and was completely flummoxed. Tha
t
called for some scary registry manipulation in a whole lot of places. Is
there not some way to get a value to plug in just to the 009 branch? I foun
d
a large number of last counter and last help fields throughout the registry
and got scared off. Where does a mere mortal go for help on this?
"msnews.microsoft.com" wrote:

> Thanks for the suggestion Markus. I tried it, and it got rid of the weird
> numbered counters in the Performance Monitor Counter list (except for one,
> listed as 0 - ZERO). However, the SQL counters are completely missing ...
> any further ideas? Thanks again.
> PJ
>
> "MarkusB" <m.bohse@.quest-consultants.com> wrote in message
> news:1133340824.530847.203620@.g44g2000cwa.googlegroups.com...
>
>

Performance Counters Missing

My SQL Server 2000 (SP2) performance counters are missing/corrupted. They
seem to be in the Performance COunter drop down, as a series of 4-digit
numbers. The SQL server runs on a active/passive Windows 2000
clusterconfiguration (W2K SP3). I've tried manually reloading them with
lodctr and the sqlctr.ini file looks clean. The other (passive) cluster
node doesn't have them either, but it also doesn't have the odd 4-digit
number entries in the drop down list of counters. Any help would be
appreciated.
PJHave you tried this:
http://support.microsoft.com/?kbid=300956
Markus|||I'll give that a try and get back to the group. Thanks for the suggestion.
PJ
"MarkusB" <m.bohse@.quest-consultants.com> wrote in message
news:1133340824.530847.203620@.g44g2000cwa.googlegroups.com...
> Have you tried this:
> http://support.microsoft.com/?kbid=300956
> Markus
>|||Thanks for the suggestion Markus. I tried it, and it got rid of the weird
numbered counters in the Performance Monitor Counter list (except for one,
listed as 0 - ZERO). However, the SQL counters are completely missing ...
any further ideas? Thanks again.
PJ
"MarkusB" <m.bohse@.quest-consultants.com> wrote in message
news:1133340824.530847.203620@.g44g2000cwa.googlegroups.com...
> Have you tried this:
> http://support.microsoft.com/?kbid=300956
> Markus
>|||I tried to fathom the recommended article and was completely flummoxed. That
called for some scary registry manipulation in a whole lot of places. Is
there not some way to get a value to plug in just to the 009 branch? I found
a large number of last counter and last help fields throughout the registry
and got scared off. Where does a mere mortal go for help on this?
"msnews.microsoft.com" wrote:
> Thanks for the suggestion Markus. I tried it, and it got rid of the weird
> numbered counters in the Performance Monitor Counter list (except for one,
> listed as 0 - ZERO). However, the SQL counters are completely missing ...
> any further ideas? Thanks again.
> PJ
>
> "MarkusB" <m.bohse@.quest-consultants.com> wrote in message
> news:1133340824.530847.203620@.g44g2000cwa.googlegroups.com...
> > Have you tried this:
> > http://support.microsoft.com/?kbid=300956
> >
> > Markus
> >
>
>

Wednesday, March 21, 2012

Performance Condition Alert Type

I am trying to setup a Performance Condition Alert and on this one SQL
2000 Server the 'Type:' drop down does not give me the option to choose
"SQL Server performance condition alert". "SQL Server event alert" is
the only item listed in the drop down. Is there some setting on the
Server that I am missing that needs to be activated? I am connected
with the SA account; Windows 2000 sp4; SQL 2000 sp2; SQL Litespeed
(this is the only server with LiteSpeed).

Thank you."Stephanie" <stuttle@.centene.com> wrote in message
news:1122068829.573542.227430@.g43g2000cwa.googlegr oups.com...
>I am trying to setup a Performance Condition Alert and on this one SQL
> 2000 Server the 'Type:' drop down does not give me the option to choose
> "SQL Server performance condition alert". "SQL Server event alert" is
> the only item listed in the drop down. Is there some setting on the
> Server that I am missing that needs to be activated? I am connected
> with the SA account; Windows 2000 sp4; SQL 2000 sp2; SQL Litespeed
> (this is the only server with LiteSpeed).
> Thank you.

In some cases, it seems that the SQL Server performance counters are not
shown in the Windows Performance Monitor, so it may be that you're seeing
something similar:

http://groups.google.ch/group/micro...ec3d36b0b?hl=en
http://www.extremeexperts.com/SQL/F...erCounters.aspx

It would also be worth installing SP4 - whether or not it helps to resolve
this issue, you need at least SP3 for protection from the Slammer worm.

Simon