Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Slow SQL 7 stored procs when DB is read-only
We have several queries that run very slow on read-only db's but very
fast on non-read only db's.  Very slow as in 20-30 minutes vs 15-20
seconds so the difference is very noticable.

Any tips on what to start looking for?

I'm very new to T-SQl so take that into consideration.  Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
george.semple@gmail.com
10-28-05 04:23 PM


Re: Slow SQL 7 stored procs when DB is read-only
george.semple@gmail.com  wrote:
> We have several queries that run very slow on read-only db's but very
> fast on non-read only db's.  Very slow as in 20-30 minutes vs 15-20
> seconds so the difference is very noticable.
>
> Any tips on what to start looking for?
>
> I'm very new to T-SQl so take that into consideration.  Thanks

What do the execution plan differences show, if anything? Have you
updated the statistics on the read only server?

--
David Gugick
Quest Software
www.imceda.com
www.quest.com


Report this thread to moderator Post Follow-up to this message
Old Post
David Gugick
10-28-05 06:23 PM


Re: Slow SQL 7 stored procs when DB is read-only

"David Gugick" wrote:

> george.semple@gmail.com wrote: 
>
> What do the execution plan differences show, if anything? Have you
> updated the statistics on the read only server?
>
> --
> David Gugick
> Quest Software
> www.imceda.com
> www.quest.com
>
>
I won't be able to compare plans until afterhours tonight (the operation
actually causes timeouts while it is running on the read-only db).  I will
update the table stats after comparing the two plans at that time as well.



Report this thread to moderator Post Follow-up to this message
Old Post
George
10-29-05 01:23 AM


Re: Slow SQL 7 stored procs when DB is read-only
George  wrote:
> "David Gugick" wrote:
> 
> I won't be able to compare plans until afterhours tonight (the
> operation actually causes timeouts while it is running on the
> read-only db).  I will update the table stats after comparing the two
> plans at that time as well.

You can run an estimated plan instead, which will not execute the SQL
statement. That might give you an intial indication until you have a
chance to run them for real.

--
David Gugick
Quest Software
www.imceda.com
www.quest.com


Report this thread to moderator Post Follow-up to this message
Old Post
David Gugick
10-29-05 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 03:39 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006