Showing posts with label databases. Show all posts
Showing posts with label databases. Show all posts

Wednesday, March 28, 2012

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, although it has 64 bit hardware, the 32bit editions of
windows and SQL2000 were installed on it. The server has 4 gigs of ram.
For the upgrade, we installed Windows 2003 server x64, and SQL Server 2005
x64 on the 2nd server. To move the databases from the 2000, to the 2005
server, the data and log files were copied over to the 2005 server,
preserving the same directory structure as the original server. The the
databases were then attached to the sql2005 server.
The first problem arose approx 2 hours after the upgrade. The computer ran
its self out of memory. I assumed this was due to the 64 bit being able to
address more memory than the 32 bit edition. I then set the "maximum server
memory" setting to 2944. After restarting the server, the memory use in the
machine now peaks at around 3.9 gigs.
However, the problem now is that after a few hours of use, users are
complaning that transactions that used to execute in a matter of seconds in
the old system are in some cases now taking upwards of a minute.
Does anyone have any ideas of what can be done to help bring the performance
back to its original levels? Remember that other than using Windows
32bit/SQL 2000 32bit to Windows 64Bit/Sql2005 64bit everthing else is
exactly the same. I have ordered an additional 4 gig RAM (to bring total to
8) to see if that helps, but in all honesty I am completly lost.
Thanks for any insite,
Ryan
Try updating statistics on all tables WITH FULLSCAN.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
..
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:OrMi8gmGHHA.3616@.TK2MSFTNGP06.phx.gbl...
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, although it has 64 bit hardware, the 32bit editions of
windows and SQL2000 were installed on it. The server has 4 gigs of ram.
For the upgrade, we installed Windows 2003 server x64, and SQL Server 2005
x64 on the 2nd server. To move the databases from the 2000, to the 2005
server, the data and log files were copied over to the 2005 server,
preserving the same directory structure as the original server. The the
databases were then attached to the sql2005 server.
The first problem arose approx 2 hours after the upgrade. The computer ran
its self out of memory. I assumed this was due to the 64 bit being able to
address more memory than the 32 bit edition. I then set the "maximum server
memory" setting to 2944. After restarting the server, the memory use in the
machine now peaks at around 3.9 gigs.
However, the problem now is that after a few hours of use, users are
complaning that transactions that used to execute in a matter of seconds in
the old system are in some cases now taking upwards of a minute.
Does anyone have any ideas of what can be done to help bring the performance
back to its original levels? Remember that other than using Windows
32bit/SQL 2000 32bit to Windows 64Bit/Sql2005 64bit everthing else is
exactly the same. I have ordered an additional 4 gig RAM (to bring total to
8) to see if that helps, but in all honesty I am completly lost.
Thanks for any insite,
Ryan
|||Hello Ryan,
There could be many reasons for this but the most common is that the
statistics often need to be recomputed when a database is upgraded. Try
rebuilding all the statistics and see if that makes a difference.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
|||I will do that, because it certainly can't hurt. However, that senario does
not explain why when the service is first started, everything runs normally,
but the slowdown occurs slowly over the following couple of hours, (or could
it)? It seems I have to re-start the server service every couple of hours in
order to make the system usable.
-Ryan
"Wei Lu [MSFT]" <weilu@.online.microsoft.com> wrote in message
news:iV7IXEpGHHA.2488@.TK2MSFTNGHUB02.phx.gbl...
> Hello Ryan,
> There could be many reasons for this but the most common is that the
> statistics often need to be recomputed when a database is upgraded. Try
> rebuilding all the statistics and see if that makes a difference.
> Sincerely,
> Wei Lu
> Microsoft Online Community Support
> ==================================================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
|||On Thu, 7 Dec 2006 19:28:57 -0600, "Ryan" <iQDevelopers@.nospam.nospam>
wrote:
>Does anyone have any ideas of what can be done to help bring the performance
>back to its original levels? Remember that other than using Windows
>32bit/SQL 2000 32bit to Windows 64Bit/Sql2005 64bit everthing else is
>exactly the same. I have ordered an additional 4 gig RAM (to bring total to
>8) to see if that helps, but in all honesty I am completly lost.
>Thanks for any insite,
Sounds like the working set is expanding, can you verify that with
task manager or perfmon?
Frankly, sounds like a major bug, SQLServer or maybe your app (?) on
the same box has a memory leak?
J.
|||Indeed updat statistics, rebuild youre indexes.
After upgarde , SQL2005 may need to recompile some storedprocedures(new
queryplan).
This might cause a delays.
Just my 2 cents.
|||Last night I ran the sp_updatestats stored procedure on some of the busier
databases on that machine. (I plan do do the rest of them tonite). I also
moved approx half the databases to another server (same configuration). As
of now, things seem to be working ok (so far. Its been running under load
for about 6 hours now). I am not sure if it is due to the updated
statistics, or the fact that each machine has only half the load as the
original problem machine.
Once I get the additional ram into the original server, and increase the
setting in SQL for max memory use, I'll start miagrating them back to see
if the problem re-occurs. Thanks for all the responses. If anyone has any
other ideas of things I can look into as well, please let me know.
Thanks,
-Ryan
|||In my migration from SQL 7.0 to SQL 2000,I found that sp_updatestats didn't
really do the job. When I ran UPDATE STATISTICS WITH FULLSCAN, that helped
a lot.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
..
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:O%23Im9CxGHHA.2456@.TK2MSFTNGP06.phx.gbl...
Last night I ran the sp_updatestats stored procedure on some of the busier
databases on that machine. (I plan do do the rest of them tonite). I also
moved approx half the databases to another server (same configuration). As
of now, things seem to be working ok (so far. Its been running under load
for about 6 hours now). I am not sure if it is due to the updated
statistics, or the fact that each machine has only half the load as the
original problem machine.
Once I get the additional ram into the original server, and increase the
setting in SQL for max memory use, I'll start miagrating them back to see
if the problem re-occurs. Thanks for all the responses. If anyone has any
other ideas of things I can look into as well, please let me know.
Thanks,
-Ryan
|||Ok. I'll do that. Thanks for the tip.
Do you know if there is any way to do it on all tables at once? I ended up
writing a script that uses a cursor to loop all the tables. Is that the best
way to do it?
Thanks,
-Ryan
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:Ow3ADB0GHHA.3468@.TK2MSFTNGP04.phx.gbl...
> In my migration from SQL 7.0 to SQL 2000,I found that sp_updatestats
> didn't
> really do the job. When I ran UPDATE STATISTICS WITH FULLSCAN, that
> helped
> a lot.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
> SQL Server MVP
> Toronto, ON Canada
|||It's one of the few times when a cursor is appropriate. ;-) You can also
use the undocumented proc:
sp_MSforeachtable 'update statistics ? with fullscan'
Under the covers, it uses a cursor.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Toronto, ON Canada
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:e6nNzv1GHHA.3468@.TK2MSFTNGP04.phx.gbl...
Ok. I'll do that. Thanks for the tip.
Do you know if there is any way to do it on all tables at once? I ended up
writing a script that uses a cursor to loop all the tables. Is that the best
way to do it?
Thanks,
-Ryan
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:Ow3ADB0GHHA.3468@.TK2MSFTNGP04.phx.gbl...
> In my migration from SQL 7.0 to SQL 2000,I found that sp_updatestats
> didn't
> really do the job. When I ran UPDATE STATISTICS WITH FULLSCAN, that
> helped
> a lot.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
> SQL Server MVP
> Toronto, ON Canada

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, although it has 64 bit hardware, the 32bit editions of
windows and SQL2000 were installed on it. The server has 4 gigs of ram.
For the upgrade, we installed Windows 2003 server x64, and SQL Server 2005
x64 on the 2nd server. To move the databases from the 2000, to the 2005
server, the data and log files were copied over to the 2005 server,
preserving the same directory structure as the original server. The the
databases were then attached to the sql2005 server.
The first problem arose approx 2 hours after the upgrade. The computer ran
its self out of memory. I assumed this was due to the 64 bit being able to
address more memory than the 32 bit edition. I then set the "maximum server
memory" setting to 2944. After restarting the server, the memory use in the
machine now peaks at around 3.9 gigs.
However, the problem now is that after a few hours of use, users are
complaning that transactions that used to execute in a matter of seconds in
the old system are in some cases now taking upwards of a minute.
Does anyone have any ideas of what can be done to help bring the performance
back to its original levels? Remember that other than using Windows
32bit/SQL 2000 32bit to Windows 64Bit/Sql2005 64bit everthing else is
exactly the same. I have ordered an additional 4 gig RAM (to bring total to
8) to see if that helps, but in all honesty I am completly lost.
Thanks for any insite,
RyanTry updating statistics on all tables WITH FULLSCAN.
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
.
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:OrMi8gmGHHA.3616@.TK2MSFTNGP06.phx.gbl...
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, although it has 64 bit hardware, the 32bit editions of
windows and SQL2000 were installed on it. The server has 4 gigs of ram.
For the upgrade, we installed Windows 2003 server x64, and SQL Server 2005
x64 on the 2nd server. To move the databases from the 2000, to the 2005
server, the data and log files were copied over to the 2005 server,
preserving the same directory structure as the original server. The the
databases were then attached to the sql2005 server.
The first problem arose approx 2 hours after the upgrade. The computer ran
its self out of memory. I assumed this was due to the 64 bit being able to
address more memory than the 32 bit edition. I then set the "maximum server
memory" setting to 2944. After restarting the server, the memory use in the
machine now peaks at around 3.9 gigs.
However, the problem now is that after a few hours of use, users are
complaning that transactions that used to execute in a matter of seconds in
the old system are in some cases now taking upwards of a minute.
Does anyone have any ideas of what can be done to help bring the performance
back to its original levels? Remember that other than using Windows
32bit/SQL 2000 32bit to Windows 64Bit/Sql2005 64bit everthing else is
exactly the same. I have ordered an additional 4 gig RAM (to bring total to
8) to see if that helps, but in all honesty I am completly lost.
Thanks for any insite,
Ryan|||Hello Ryan,
There could be many reasons for this but the most common is that the
statistics often need to be recomputed when a database is upgraded. Try
rebuilding all the statistics and see if that makes a difference.
Sincerely,
Wei Lu
Microsoft Online Community Support
========================================
==========
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
==========
This posting is provided "AS IS" with no warranties, and confers no rights.|||I will do that, because it certainly can't hurt. However, that senario does
not explain why when the service is first started, everything runs normally,
but the slowdown occurs slowly over the following couple of hours, (or could
it)? It seems I have to re-start the server service every couple of hours in
order to make the system usable.
-Ryan
"Wei Lu [MSFT]" <weilu@.online.microsoft.com> wrote in message
news:iV7IXEpGHHA.2488@.TK2MSFTNGHUB02.phx.gbl...
> Hello Ryan,
> There could be many reasons for this but the most common is that the
> statistics often need to be recomputed when a database is upgraded. Try
> rebuilding all the statistics and see if that makes a difference.
> Sincerely,
> Wei Lu
> Microsoft Online Community Support
> ========================================
==========
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ========================================
==========
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>|||On 08.12.2006 08:34, Ryan wrote:
> I will do that, because it certainly can't hurt. However, that senario doe
s
> not explain why when the service is first started, everything runs normall
y,
> but the slowdown occurs slowly over the following couple of hours, (or cou
ld
> it)? It seems I have to re-start the server service every couple of hours
in
> order to make the system usable.
Could be paging. Make sure your SQL Server memory settings do not grant
more mem than physically available minus some space for operating system
and other programs.
robert|||On Thu, 7 Dec 2006 19:28:57 -0600, "Ryan" <iQDevelopers@.nospam.nospam>
wrote:
>Does anyone have any ideas of what can be done to help bring the performanc
e
>back to its original levels? Remember that other than using Windows
>32bit/SQL 2000 32bit to Windows 64Bit/Sql2005 64bit everthing else is
>exactly the same. I have ordered an additional 4 gig RAM (to bring total to
>8) to see if that helps, but in all honesty I am completly lost.
>Thanks for any insite,
Sounds like the working set is expanding, can you verify that with
task manager or perfmon?
Frankly, sounds like a major bug, SQLServer or maybe your app (?) on
the same box has a memory leak?
J.|||Indeed updat statistics, rebuild youre indexes.
After upgarde , SQL2005 may need to recompile some storedprocedures(new
queryplan).
This might cause a delays.
Just my 2 cents.|||Last night I ran the sp_updatestats stored procedure on some of the busier
databases on that machine. (I plan do do the rest of them tonite). I also
moved approx half the databases to another server (same configuration). As
of now, things seem to be working ok (so far. Its been running under load
for about 6 hours now). I am not sure if it is due to the updated
statistics, or the fact that each machine has only half the load as the
original problem machine.
Once I get the additional ram into the original server, and increase the
setting in SQL for max memory use, I'll start miagrating them back to see
if the problem re-occurs. Thanks for all the responses. If anyone has any
other ideas of things I can look into as well, please let me know.
Thanks,
-Ryan|||In my migration from SQL 7.0 to SQL 2000,I found that sp_updatestats didn't
really do the job. When I ran UPDATE STATISTICS WITH FULLSCAN, that helped
a lot.
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
.
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:O%23Im9CxGHHA.2456@.TK2MSFTNGP06.phx.gbl...
Last night I ran the sp_updatestats stored procedure on some of the busier
databases on that machine. (I plan do do the rest of them tonite). I also
moved approx half the databases to another server (same configuration). As
of now, things seem to be working ok (so far. Its been running under load
for about 6 hours now). I am not sure if it is due to the updated
statistics, or the fact that each machine has only half the load as the
original problem machine.
Once I get the additional ram into the original server, and increase the
setting in SQL for max memory use, I'll start miagrating them back to see
if the problem re-occurs. Thanks for all the responses. If anyone has any
other ideas of things I can look into as well, please let me know.
Thanks,
-Ryan|||Ok. I'll do that. Thanks for the tip.
Do you know if there is any way to do it on all tables at once? I ended up
writing a script that uses a cursor to loop all the tables. Is that the best
way to do it?
Thanks,
-Ryan
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:Ow3ADB0GHHA.3468@.TK2MSFTNGP04.phx.gbl...
> In my migration from SQL 7.0 to SQL 2000,I found that sp_updatestats
> didn't
> really do the job. When I ran UPDATE STATISTICS WITH FULLSCAN, that
> helped
> a lot.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
> SQL Server MVP
> Toronto, ON Canada

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, although it has 64 bit hardware, the 32bit editions of
windows and SQL2000 were installed on it. The server has 4 gigs of ram.
For the upgrade, we installed Windows 2003 server x64, and SQL Server 2005
x64 on the 2nd server. To move the databases from the 2000, to the 2005
server, the data and log files were copied over to the 2005 server,
preserving the same directory structure as the original server. The the
databases were then attached to the sql2005 server.
The first problem arose approx 2 hours after the upgrade. The computer ran
its self out of memory. I assumed this was due to the 64 bit being able to
address more memory than the 32 bit edition. I then set the "maximum server
memory" setting to 2944. After restarting the server, the memory use in the
machine now peaks at around 3.9 gigs.
However, the problem now is that after a few hours of use, users are
complaning that transactions that used to execute in a matter of seconds in
the old system are in some cases now taking upwards of a minute.
Does anyone have any ideas of what can be done to help bring the performance
back to its original levels? Remember that other than using Windows
32bit/SQL 2000 32bit to Windows 64Bit/Sql2005 64bit everthing else is
exactly the same. I have ordered an additional 4 gig RAM (to bring total to
8) to see if that helps, but in all honesty I am completly lost.
Thanks for any insite,
RyanTry updating statistics on all tables WITH FULLSCAN.
--
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
.
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:OrMi8gmGHHA.3616@.TK2MSFTNGP06.phx.gbl...
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, although it has 64 bit hardware, the 32bit editions of
windows and SQL2000 were installed on it. The server has 4 gigs of ram.
For the upgrade, we installed Windows 2003 server x64, and SQL Server 2005
x64 on the 2nd server. To move the databases from the 2000, to the 2005
server, the data and log files were copied over to the 2005 server,
preserving the same directory structure as the original server. The the
databases were then attached to the sql2005 server.
The first problem arose approx 2 hours after the upgrade. The computer ran
its self out of memory. I assumed this was due to the 64 bit being able to
address more memory than the 32 bit edition. I then set the "maximum server
memory" setting to 2944. After restarting the server, the memory use in the
machine now peaks at around 3.9 gigs.
However, the problem now is that after a few hours of use, users are
complaning that transactions that used to execute in a matter of seconds in
the old system are in some cases now taking upwards of a minute.
Does anyone have any ideas of what can be done to help bring the performance
back to its original levels? Remember that other than using Windows
32bit/SQL 2000 32bit to Windows 64Bit/Sql2005 64bit everthing else is
exactly the same. I have ordered an additional 4 gig RAM (to bring total to
8) to see if that helps, but in all honesty I am completly lost.
Thanks for any insite,
Ryan|||Hello Ryan,
There could be many reasons for this but the most common is that the
statistics often need to be recomputed when a database is upgraded. Try
rebuilding all the statistics and see if that makes a difference.
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||I will do that, because it certainly can't hurt. However, that senario does
not explain why when the service is first started, everything runs normally,
but the slowdown occurs slowly over the following couple of hours, (or could
it)? It seems I have to re-start the server service every couple of hours in
order to make the system usable.
-Ryan
"Wei Lu [MSFT]" <weilu@.online.microsoft.com> wrote in message
news:iV7IXEpGHHA.2488@.TK2MSFTNGHUB02.phx.gbl...
> Hello Ryan,
> There could be many reasons for this but the most common is that the
> statistics often need to be recomputed when a database is upgraded. Try
> rebuilding all the statistics and see if that makes a difference.
> Sincerely,
> Wei Lu
> Microsoft Online Community Support
> ==================================================> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ==================================================> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>|||On 08.12.2006 08:34, Ryan wrote:
> I will do that, because it certainly can't hurt. However, that senario does
> not explain why when the service is first started, everything runs normally,
> but the slowdown occurs slowly over the following couple of hours, (or could
> it)? It seems I have to re-start the server service every couple of hours in
> order to make the system usable.
Could be paging. Make sure your SQL Server memory settings do not grant
more mem than physically available minus some space for operating system
and other programs.
robert|||On Thu, 7 Dec 2006 19:28:57 -0600, "Ryan" <iQDevelopers@.nospam.nospam>
wrote:
>Does anyone have any ideas of what can be done to help bring the performance
>back to its original levels? Remember that other than using Windows
>32bit/SQL 2000 32bit to Windows 64Bit/Sql2005 64bit everthing else is
>exactly the same. I have ordered an additional 4 gig RAM (to bring total to
>8) to see if that helps, but in all honesty I am completly lost.
>Thanks for any insite,
Sounds like the working set is expanding, can you verify that with
task manager or perfmon?
Frankly, sounds like a major bug, SQLServer or maybe your app (?) on
the same box has a memory leak?
J.|||Last night I ran the sp_updatestats stored procedure on some of the busier
databases on that machine. (I plan do do the rest of them tonite). I also
moved approx half the databases to another server (same configuration). As
of now, things seem to be working ok (so far. Its been running under load
for about 6 hours now). I am not sure if it is due to the updated
statistics, or the fact that each machine has only half the load as the
original problem machine.
Once I get the additional ram into the original server, and increase the
setting in SQL for max memory use, I'll start miagrating them back to see
if the problem re-occurs. Thanks for all the responses. If anyone has any
other ideas of things I can look into as well, please let me know.
Thanks,
-Ryan|||In my migration from SQL 7.0 to SQL 2000,I found that sp_updatestats didn't
really do the job. When I ran UPDATE STATISTICS WITH FULLSCAN, that helped
a lot.
--
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
.
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:O%23Im9CxGHHA.2456@.TK2MSFTNGP06.phx.gbl...
Last night I ran the sp_updatestats stored procedure on some of the busier
databases on that machine. (I plan do do the rest of them tonite). I also
moved approx half the databases to another server (same configuration). As
of now, things seem to be working ok (so far. Its been running under load
for about 6 hours now). I am not sure if it is due to the updated
statistics, or the fact that each machine has only half the load as the
original problem machine.
Once I get the additional ram into the original server, and increase the
setting in SQL for max memory use, I'll start miagrating them back to see
if the problem re-occurs. Thanks for all the responses. If anyone has any
other ideas of things I can look into as well, please let me know.
Thanks,
-Ryan|||Ok. I'll do that. Thanks for the tip.
Do you know if there is any way to do it on all tables at once? I ended up
writing a script that uses a cursor to loop all the tables. Is that the best
way to do it?
Thanks,
-Ryan
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:Ow3ADB0GHHA.3468@.TK2MSFTNGP04.phx.gbl...
> In my migration from SQL 7.0 to SQL 2000,I found that sp_updatestats
> didn't
> really do the job. When I ran UPDATE STATISTICS WITH FULLSCAN, that
> helped
> a lot.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
> SQL Server MVP
> Toronto, ON Canada|||It's one of the few times when a cursor is appropriate. ;-) You can also
use the undocumented proc:
sp_MSforeachtable 'update statistics ? with fullscan'
Under the covers, it uses a cursor.
Tom
----
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Toronto, ON Canada
"Ryan" <iQDevelopers@.nospam.nospam> wrote in message
news:e6nNzv1GHHA.3468@.TK2MSFTNGP04.phx.gbl...
Ok. I'll do that. Thanks for the tip.
Do you know if there is any way to do it on all tables at once? I ended up
writing a script that uses a cursor to loop all the tables. Is that the best
way to do it?
Thanks,
-Ryan
"Tom Moreau" <tom@.dont.spam.me.cips.ca> wrote in message
news:Ow3ADB0GHHA.3468@.TK2MSFTNGP04.phx.gbl...
> In my migration from SQL 7.0 to SQL 2000,I found that sp_updatestats
> didn't
> really do the job. When I ran UPDATE STATISTICS WITH FULLSCAN, that
> helped
> a lot.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
> SQL Server MVP
> Toronto, ON Canada

Poor Performance - Identical Databases Different Performance

Hello Everyone,
I have a very complex performance issue with our production database.
Here's the scenario. We have a production webserver server and a
development web server. Both are running SQL Server 2000.
I encounted various performance issues with the production server with
a particular query. It would take approximately 22 seconds to return
100 rows, thats about 0.22 seconds per row. Note: I ran the query in
single user mode. So I tested the query on the Development server by
taking a backup (.dmp) of the database and moving it onto the dev
server. I ran the same query and found that it ran in less than a
second.
I took a look at the query execution plan and I found that they we're
the exact same in both cases.
Then I took a look at the various index's, and again I found no
differences in the table indices.
If both databases are identical, I'm assumeing that the issue is
related to some external hardware issue like: disk space, memory etc.
Or could it be OS software related issues, like service packs, SQL
Server configuations etc.
Here's what I've done to rule out some obvious hardware issues on the
prod server:
1. Moved all extraneous files to a secondary harddrive to free up space
on the primary harddrive. There is 55gb's of free space on the disk.
2. Applied SQL Server SP4 service packs
3. Defragmented the primary harddrive
4. Applied all Windows Server 2003 updates
Here is the prod servers system specs:
2x Intel Xeon 2.67GHZ
Total Physical Memory 2GB, Available Physical Memory 815MB
Windows Server 2003 SE /w SP1
Here is the dev serers system specs:
2x Intel Xeon 2.80GHz
2GB DDR2-SDRAM
Windows Server 2003 SE /w SP1
I'm not sure what else to do, the query performance is an order of
magnitude difference and I can't explain it. To me its is a hardware or
operating system
related issue.
Any Ideas would help me greatly!
Thanks,
Brian TCheck the Windows logs on the prod server for any networking, etc problems.
Run profiler on both queries and see what else might be going on.
Turn statistics, etc on also and compare them.
If auto update stats on?... Check for fragmentation in the index or table
being used.
If you are using an ODBC connection, is it possible that the ODBC logging is
turned on for the product box?
Is it possible that an expensive 3-d screen saver might be running on prod?
What is the proc, etc resource usage on both machines during the test?
Check everything...
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.
"BTabios@.gmail.com" wrote:

> Hello Everyone,
> I have a very complex performance issue with our production database.
> Here's the scenario. We have a production webserver server and a
> development web server. Both are running SQL Server 2000.
> I encounted various performance issues with the production server with
> a particular query. It would take approximately 22 seconds to return
> 100 rows, thats about 0.22 seconds per row. Note: I ran the query in
> single user mode. So I tested the query on the Development server by
> taking a backup (.dmp) of the database and moving it onto the dev
> server. I ran the same query and found that it ran in less than a
> second.
> I took a look at the query execution plan and I found that they we're
> the exact same in both cases.
> Then I took a look at the various index's, and again I found no
> differences in the table indices.
> If both databases are identical, I'm assumeing that the issue is
> related to some external hardware issue like: disk space, memory etc.
> Or could it be OS software related issues, like service packs, SQL
> Server configuations etc.
> Here's what I've done to rule out some obvious hardware issues on the
> prod server:
> 1. Moved all extraneous files to a secondary harddrive to free up space
> on the primary harddrive. There is 55gb's of free space on the disk.
> 2. Applied SQL Server SP4 service packs
> 3. Defragmented the primary harddrive
> 4. Applied all Windows Server 2003 updates
>
> Here is the prod servers system specs:
> 2x Intel Xeon 2.67GHZ
> Total Physical Memory 2GB, Available Physical Memory 815MB
> Windows Server 2003 SE /w SP1
> Here is the dev serers system specs:
> 2x Intel Xeon 2.80GHz
> 2GB DDR2-SDRAM
> Windows Server 2003 SE /w SP1
> I'm not sure what else to do, the query performance is an order of
> magnitude difference and I can't explain it. To me its is a hardware or
> operating system
> related issue.
> Any Ideas would help me greatly!
> Thanks,
> Brian T
>|||Check the Windows logs on the prod server for any networking, etc problems.
Run profiler on both queries and see what else might be going on.
Turn statistics, etc on also and compare them.
If auto update stats on?... Check for fragmentation in the index or table
being used.
If you are using an ODBC connection, is it possible that the ODBC logging is
turned on for the product box?
Is it possible that an expensive 3-d screen saver might be running on prod?
What is the proc, etc resource usage on both machines during the test?
Check everything...
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.
"BTabios@.gmail.com" wrote:

> Hello Everyone,
> I have a very complex performance issue with our production database.
> Here's the scenario. We have a production webserver server and a
> development web server. Both are running SQL Server 2000.
> I encounted various performance issues with the production server with
> a particular query. It would take approximately 22 seconds to return
> 100 rows, thats about 0.22 seconds per row. Note: I ran the query in
> single user mode. So I tested the query on the Development server by
> taking a backup (.dmp) of the database and moving it onto the dev
> server. I ran the same query and found that it ran in less than a
> second.
> I took a look at the query execution plan and I found that they we're
> the exact same in both cases.
> Then I took a look at the various index's, and again I found no
> differences in the table indices.
> If both databases are identical, I'm assumeing that the issue is
> related to some external hardware issue like: disk space, memory etc.
> Or could it be OS software related issues, like service packs, SQL
> Server configuations etc.
> Here's what I've done to rule out some obvious hardware issues on the
> prod server:
> 1. Moved all extraneous files to a secondary harddrive to free up space
> on the primary harddrive. There is 55gb's of free space on the disk.
> 2. Applied SQL Server SP4 service packs
> 3. Defragmented the primary harddrive
> 4. Applied all Windows Server 2003 updates
>
> Here is the prod servers system specs:
> 2x Intel Xeon 2.67GHZ
> Total Physical Memory 2GB, Available Physical Memory 815MB
> Windows Server 2003 SE /w SP1
> Here is the dev serers system specs:
> 2x Intel Xeon 2.80GHz
> 2GB DDR2-SDRAM
> Windows Server 2003 SE /w SP1
> I'm not sure what else to do, the query performance is an order of
> magnitude difference and I can't explain it. To me its is a hardware or
> operating system
> related issue.
> Any Ideas would help me greatly!
> Thanks,
> Brian T
>

Poor Performance - Identical Databases Different Performance

Hello Everyone,
I have a very complex performance issue with our production database.
Here's the scenario. We have a production webserver server and a
development web server. Both are running SQL Server 2000.
I encounted various performance issues with the production server with
a particular query. It would take approximately 22 seconds to return
100 rows, thats about 0.22 seconds per row. Note: I ran the query in
single user mode. So I tested the query on the Development server by
taking a backup (.dmp) of the database and moving it onto the dev
server. I ran the same query and found that it ran in less than a
second.
I took a look at the query execution plan and I found that they we're
the exact same in both cases.
Then I took a look at the various index's, and again I found no
differences in the table indices.
If both databases are identical, I'm assumeing that the issue is
related to some external hardware issue like: disk space, memory etc.
Or could it be OS software related issues, like service packs, SQL
Server configuations etc.
Here's what I've done to rule out some obvious hardware issues on the
prod server:
1. Moved all extraneous files to a secondary harddrive to free up space
on the primary harddrive. There is 55gb's of free space on the disk.
2. Applied SQL Server SP4 service packs
3. Defragmented the primary harddrive
4. Applied all Windows Server 2003 updates
Here is the prod servers system specs:
2x Intel Xeon 2.67GHZ
Total Physical Memory 2GB, Available Physical Memory 815MB
Windows Server 2003 SE /w SP1
Here is the dev serers system specs:
2x Intel Xeon 2.80GHz
2GB DDR2-SDRAM
Windows Server 2003 SE /w SP1
I'm not sure what else to do, the query performance is an order of
magnitude difference and I can't explain it. To me its is a hardware or
operating system
related issue.
Any Ideas would help me greatly!
Thanks,
Brian TCheck the Windows logs on the prod server for any networking, etc problems.
Run profiler on both queries and see what else might be going on.
Turn statistics, etc on also and compare them.
If auto update stats on?... Check for fragmentation in the index or table
being used.
If you are using an ODBC connection, is it possible that the ODBC logging is
turned on for the product box?
Is it possible that an expensive 3-d screen saver might be running on prod?
What is the proc, etc resource usage on both machines during the test?
Check everything...
--
Wayne Snyder MCDBA, SQL Server MVP
Mariner, Charlotte, NC
I support the Professional Association for SQL Server ( PASS) and it''s
community of SQL Professionals.
"BTabios@.gmail.com" wrote:
> Hello Everyone,
> I have a very complex performance issue with our production database.
> Here's the scenario. We have a production webserver server and a
> development web server. Both are running SQL Server 2000.
> I encounted various performance issues with the production server with
> a particular query. It would take approximately 22 seconds to return
> 100 rows, thats about 0.22 seconds per row. Note: I ran the query in
> single user mode. So I tested the query on the Development server by
> taking a backup (.dmp) of the database and moving it onto the dev
> server. I ran the same query and found that it ran in less than a
> second.
> I took a look at the query execution plan and I found that they we're
> the exact same in both cases.
> Then I took a look at the various index's, and again I found no
> differences in the table indices.
> If both databases are identical, I'm assumeing that the issue is
> related to some external hardware issue like: disk space, memory etc.
> Or could it be OS software related issues, like service packs, SQL
> Server configuations etc.
> Here's what I've done to rule out some obvious hardware issues on the
> prod server:
> 1. Moved all extraneous files to a secondary harddrive to free up space
> on the primary harddrive. There is 55gb's of free space on the disk.
> 2. Applied SQL Server SP4 service packs
> 3. Defragmented the primary harddrive
> 4. Applied all Windows Server 2003 updates
>
> Here is the prod servers system specs:
> 2x Intel Xeon 2.67GHZ
> Total Physical Memory 2GB, Available Physical Memory 815MB
> Windows Server 2003 SE /w SP1
> Here is the dev serers system specs:
> 2x Intel Xeon 2.80GHz
> 2GB DDR2-SDRAM
> Windows Server 2003 SE /w SP1
> I'm not sure what else to do, the query performance is an order of
> magnitude difference and I can't explain it. To me its is a hardware or
> operating system
> related issue.
> Any Ideas would help me greatly!
> Thanks,
> Brian T
>sql

Tuesday, March 20, 2012

Plz Give The Solution Within Hour

I have two Same Databases on two different machine.i developed report at first machine.it run successfully.when i copy the report to other machine which has different name and open it, on refreshing ,its prompt for database connection then i change the name of server,database name ,user id and password then press ok.
Then
System Processing............
System Processing............
System Processing............
System Processing............
System Processing............
System Processing............
System Hanged
then I press Alt+Ctll+Delete
to abort the procceesCheck the ODBC source on both machines, if report runs on machine a, but not machine b, it could be the ODBC names are mis-matched.|||Bro. V361 i am using OLEDB(ADO) for database connection.

Actually problem is that i have developed report with my Server name for eg.DB02.BUT at client side DB02 is obviously unknown.when client open my report in crystal report and press F5 ,sometime it prompt for parameters,and sometime it hangs,when it prompt for parameter,i press ok then it ask for database connection ,I enter the configuration accordingly.after that.....Dont ask...

Prbolem is How to replace my Server Name with Clint Server Name...|||Open report, go to database, set databse location, you should see the current database connection at the top, browse too or create the new connection at the bottom. You will need to click on the table names at the
top, find the table name in the bottom connection and click update. You will need to do this for all tables involved as well as any subreports. As long as your report is not based on a command, this should help.|||Thanks for your reply.
My problem has been solved.Connection Timeout property was set to 0 which means crystal report never prompt for database configuration and keep searching for server name which causes computer to be hanged.

Wednesday, March 7, 2012

Please provide me with a solution

I am developer who codes for both front end and back end.

HEre is the situation. I have two databases sqlnts1 and sqlnts2. I need to update certain tables in sqlnts1 and then certain tables in sqlnts2 and then back to the sqlnts1 to update few more tables. This is the program logic.

When I tried executing the stored procedure written in sql server 2000 I am provided with the following message

"[OLE/DB provider returned message: Cannot start more transactions on this session.]"

To set this problem correct the only option that I have is to set xact_abort on. But, setting this option on I cannot handle the errors in code. That is this option lets the server handle the system errors.

I want to handle the errors using @.@.error programatically.

Also when I try to commit the transaction that is started before updating sqlnts1 at the end of the stored procedure it provides me with the following error.

"No transaction or savepoint of that name was found".

To work around this problem I used set xact_abort on before making updates to sqlnts2 and set it back to off after finishing updates to sqlnts2.

This way it works, but am sure given that there occurs an error in updating sqlnts2 server tables - its gonna create problems. I want to handle them by myself in the code.

Please help.

Here is the program flow. I tried beginning the distributed transaction too. Case is also checked and begin and end tran are ensured to have the same case.

Begin distributed transaction abc / begin tran abc

Update tables in sqlnts1

set xact abort on

update tables in sqlnts2

set xact abort off

Update tables in sqlnts1

commit tran / rollback tran abc

Thanks,
SubhaAre these 2 DBs on the same server or different servers?|||The sqlnts1 and 2 are two servers.

I would look forward ot hear from you.
Thanks,
Subha

Originally posted by sbaru
Are these 2 DBs on the same server or different servers?|||What is the level of nested transactions you are going into ?
find max value of @.trancount at which the error
"[OLE/DB provider returned message: Cannot start more transactions on this session.]"
occurs|||I have only one transaction on. I don't open multiple transactions.
@.trancount is only 1

Originally posted by Enigma
What is the level of nested transactions you are going into ?
find max value of @.trancount at which the error
"[OLE/DB provider returned message: Cannot start more transactions on this session.]"
occurs

Please provide me with a solution

I am developer who codes for both front end and back end.

HEre is the situation. I have two databases sqlnts1 and sqlnts2. I need to update certain tables in sqlnts1 and then certain tables in sqlnts2 and then back to the sqlnts1 to update few more tables. This is the program logic.

When I tried executing the stored procedure written in sql server 2000 I am provided with the following message

"[OLE/DB provider returned message: Cannot start more transactions on this session.]"

To set this problem correct the only option that I have is to set xact_abort on. But, setting this option on I cannot handle the errors in code. That is this option lets the server handle the system errors.

I want to handle the errors using @.@.error programatically.

Also when I try to commit the transaction that is started before updating sqlnts1 at the end of the stored procedure it provides me with the following error.

"No transaction or savepoint of that name was found".

To work around this problem I used set xact_abort on before making updates to sqlnts2 and set it back to off after finishing updates to sqlnts2.

This way it works, but am sure given that there occurs an error in updating sqlnts2 server tables - its gonna create problems. I want to handle them by myself in the code.

Please help.

Here is the program flow. I tried beginning the distributed transaction too. Case is also checked and begin and end tran are ensured to have the same case.

Begin distributed transaction abc / begin tran abc

Update tables in sqlnts1

set xact abort on

update tables in sqlnts2

set xact abort off

Update tables in sqlnts1

commit tran / rollback tran abc

Thanks,
SubhaCrosspost

http://www.dbforums.com/t970872.html (http://www.dbforums.com/t970872.html)|||I could not see any reply posted by enigma??????

Originally posted by subkrish
I am developer who codes for both front end and back end.

HEre is the situation. I have two databases sqlnts1 and sqlnts2. I need to update certain tables in sqlnts1 and then certain tables in sqlnts2 and then back to the sqlnts1 to update few more tables. This is the program logic.

When I tried executing the stored procedure written in sql server 2000 I am provided with the following message

"[OLE/DB provider returned message: Cannot start more transactions on this session.]"

To set this problem correct the only option that I have is to set xact_abort on. But, setting this option on I cannot handle the errors in code. That is this option lets the server handle the system errors.

I want to handle the errors using @.@.error programatically.

Also when I try to commit the transaction that is started before updating sqlnts1 at the end of the stored procedure it provides me with the following error.

"No transaction or savepoint of that name was found".

To work around this problem I used set xact_abort on before making updates to sqlnts2 and set it back to off after finishing updates to sqlnts2.

This way it works, but am sure given that there occurs an error in updating sqlnts2 server tables - its gonna create problems. I want to handle them by myself in the code.

Please help.

Here is the program flow. I tried beginning the distributed transaction too. Case is also checked and begin and end tran are ensured to have the same case.

Begin distributed transaction abc / begin tran abc

Update tables in sqlnts1

set xact abort on

update tables in sqlnts2

set xact abort off

Update tables in sqlnts1

commit tran / rollback tran abc

Thanks,
Subha