all groups > sql server replication > august 2005 >
You're in the

sql server replication

group:

Query Timeout


Query Timeout SouRa
8/29/2005 9:23:04 PM
sql server replication: Hi,

I want to increase query timeout value but I don't know how to do this.
Please
advise me where to change query timeout value. Is it possible to set this
for a
particular database?

Thanks,
Soura.

RE: Query Timeout Herbert
8/30/2005 2:20:01 AM
Hi Sounder,

I think we can increase the Timeout for a whole server(all DB's in that
Server)

Right click on the server name => Select properties => Choose the
Connections tab => Increase the query timeout value. (The value is in
seconds. Set it to 0 for unlimited time) => Click OK.


Regards,
Herbert


[quoted text, click to view]
RE: Query Timeout SouRa
8/30/2005 3:08:01 AM
Hi Herbert,

Thanks for your reply. There is an option in replication job to change the
number of attempts to connect subscriber with some specified time interval.
We can modify the information. Similarly is there any option to change query
time out (in any replication jobs,subscription properties or any where else)?

Thanks,
Soura.

[quoted text, click to view]
RE: Query Timeout Herbert
8/30/2005 3:23:02 AM
Hi Sounder,

I think u need to increase the timeout of merge agent.....

Open the Replication monitor in that choose the Merge agent => Right-click
appropriate publication and select Agent Profiles... => Click the New Profile
button to create the new profile with the appropriate QueryTimeout value =>
Choose the newly created profile.

Hope this will help..

Regards,
Herbert


[quoted text, click to view]
RE: Query Timeout SouRa
8/30/2005 5:05:10 AM
Hi Herbert,

Thanks for your reply. Actually I getting time out error in my application
frequently.
So I decided to increase the query time out value. I found a profile High
volume server to server profile (in merge agent profiles), any idea about
this?

Thanks,
Soura.

[quoted text, click to view]
RE: Query Timeout Herbert
8/30/2005 5:21:03 AM
Hi Sounder,

Since ur getting timeout in application, i think u have to increase the
query timeout of Server instead of replication agent.

by my previous post step u can set the query timeout of Server.

Regards,
Herbert


[quoted text, click to view]
Re: Query Timeout ChrisR
8/30/2005 9:17:52 AM
SouRa, rather than adjusting the query timeout setting, why dont you try to
figure out why the queries are taking so long?


[quoted text, click to view]

Re: Query Timeout Paul Ibison
8/30/2005 8:18:16 PM
Soura,
the querytimeout as you seem to be requesting - for all access to the
server - is really a client-side setting. Herbert is right that
replicationwise we can set this in the agent profile, but as you seem to be
requesting more generally, it'll be a property of the command object if you
are using ADO / ADO.NET. Usually this doesn't need changing but there are
legitimate cases for it. I also concur with Chris - you might want to start
by looking to see if you have blocking issues that can be remedied by using
NOLOCK or a reporting server or better indexes for optimization etc. Not
always appropriate but still worth verifying.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Re: Query Timeout SouRa
9/8/2005 5:09:04 AM

Hi,

We have modified the Merge agent profile to "High end server to server.."

After couple of days of this change, we came across a new error message "the
process is running and waiting for a response from one of the backend
connections", after this message, we noticed the normal error message "
...clean up".

Please provide any other areas we may need to review.

We "push" the subscription to the Subscriber. All our foreign keys are not
enabled for replication.

Thanks,
Soura

[quoted text, click to view]
Re: Query Timeout Paul Ibison
9/8/2005 1:33:17 PM
SouRa,
the first error message is not normally anything to be concerned about. I
often get this when initializing. In my case it is the application of the
indexes that causes this message. Have a loog at the processes and use bdcc
inputbuffer to see exactly what is happening during this time. Please could
you post up the complete text of the second error message.
Cheers,
Paul

[quoted text, click to view]

Re: Query Timeout SouRa
9/8/2005 10:10:02 PM
Hi Paul,

Thanks for your reply.

Following is the second error message.
'The merge process could not perform retention-based meta data cleanup in
database 'dbname'.'

Thanks,
Soura


[quoted text, click to view]
Re: Query Timeout SouRa
9/15/2005 7:06:01 AM
Hi ,

I have doubled the query time out in agent profile from 5 minutes to 10
minutes.

But, now I am getting the below error messages frequently,

1. The process is running and waiting for a response from one of the backend
connections
2. The process could not make a generation at the ‘Publisher’
3. Initializing
4. Connecting to publisher ‘publisher name’
5. The process is running and waiting for a response from one of the
backend
connections
6. The process could not perform retention-based meta data cleanup in
database
'database name'

Please advise.

Thanks,
Soura

[quoted text, click to view]
Re: Query Timeout SouRa
9/19/2005 9:29:02 PM
Hi

After doubling the query timeout in Replication -agent profile, i am getting
error message
'The process could not perform retention based meta-data clean up in
database 'Databasename' in one of the databases
quite often ( i have 50 databases all of them are being Merge replicated)

I have reproduced below row count of MSMERGE_CONTENTS, MSSMERGE_TOMBSTONE
and MSMERGE_GENHISTORY for last three days. The details given below.

Table Name Rowcount
09/16/2005 09/17/2005 09/19/2005
MSMERGE_CONTENTS 27599 25316 24820
MSMERGE_GENHISTORY 14738 14050 14100
MSSMERGE_TOMBSTONE 57764 50026 54186


IN all the database which we are monitoring row count has been decreasing in
the above tables.
However in this specific database where we have this meta-deta issue, we
notice that the table is actually increasing

These tables indexed regularly and checkdb on this database has not repored
any errors


Any specific reason for this increase of row count. Does it provides any
other hints

Do we need to monitor any other parameters

pl advise.

Thanks,
Soura

[quoted text, click to view]
AddThis Social Bookmark Button