Groups | Blog | Home
all groups > sql server replication > january 2006 >

sql server replication : Change QueryTimeout


David Chase
1/19/2006 5:03:28 PM
How do I change the value in QueryTimeout? I have some wireless laptops
that are timing out sometimes when they synch. Thanks.

David

Hilary Cotter
1/19/2006 10:06:45 PM
Connect to your publisher in EM, expand the replication Monitor folder,
expand the distribution or merge agent folder, right click on your problem
agent, and select agent properties, click the steps tab, and double click on
run agent, click in the command text box, and press end, then press space
and type -QueryTimeOut 300 (or more).

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

[quoted text, click to view]

David Chase
1/20/2006 11:42:52 AM
So what is the query timeout in the View Conflicts button for? This shows
90 seconds.

Also, I cannot get to agent properties because the subscribers are anonymous
laptops. I get prompted for username and password but still does not
connect.

David

[quoted text, click to view]

Hilary Cotter
1/20/2006 11:34:04 PM
That's for the conflict viewer, when it logs on to the Publisher.

If you are getting prompted for the username and password it is because you
are using SQL authentication, switch to NT if possible. You should be able
to change querytimeout on the default profile. By default its 300s. Try to
use a new profile with the value you want, or modify it in the msdb
database.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

[quoted text, click to view]

Guy Thornton
3/23/2006 1:21:02 PM
Hilary,

Thanks for this information, as I am having the same problem. I was able to
change my query timeouts by updating the msdb database. A question I have
though is what causes the queries to begin running longer? When I first
began this publication, I had no problems completing the replication query.
But over time, I have now encountered this problem.

I am assuming that it is due to a build up of changes that have occurred
overtime. And if that is the case, is there a way to reduce the change
history that the query must process?

[quoted text, click to view]
Hilary Cotter
3/23/2006 8:29:30 PM
It could be transactions queued in the distribution database. Use select *
from distribution.dbo.msdistribution_status to confirm this.

It could also be that you need to look at the indexes on place on the
subscriber and perhaps rebuild or maintain them. Run profiler to identify
the problem tables/procs.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

[quoted text, click to view]

AddThis Social Bookmark Button