Friday, March 30, 2012
Replication failed
We are using transactional replication and it failed and
showing following error
Error:
The process could not bulk copy into table 'TableName'.
Error Number:
22001
Category:ODBC
Source: ODBC
Full Message:
String data, right truncation
Is any one having solution for this?
Regards,
Manoj
Manoj,
can you check if the schemas are identical on publisher and subscriber if
you are doing a nosync initialization.
If you are sending over the table schema, can you ensure that you take the
collation.
Regards,
Paul Ibison
Replication Error process could not read file HELP PLZ
The process could not read file '\\NJRARSVR00E9\d$\sqldata\system\MSSQL$P001\ReplD ata\unc\NJRARSVR00E9$P001_PTR_PTR\20040707104224\s napshot.pre' due to OS error 5.Why is the extension "pre"? My understanding you're using an alternate location for distribution agent to read snapshot files from. If the file name is snapshot, I also assume that you chose "compression" for it, which means that the extension should be "cab"...What gives? And also post the entire error or errors.
Wednesday, March 28, 2012
REPLICATION ERROR - retention-based meta data
I am dealing with merge replication.
The following error occured several times since last 1 month.
The merge process could not perform retention-based meta data cleanup in
database 'databasename'.
(Source: Merge Replication Provider (Agent); Error number: -2147199467)
-----
The merge process timed out while executing a query. Reconfigure the
QueryTimeout parameter and retry the operation.
(Source: DPMS (Data source); Error number: 0)
-----
1. What is reason for this error?
2. Is it possible to overcome this?
Thanks,
Soura
SouRa,
you could try increasing the QueryTimeout value, but the error may be
symptomatic of a bigger issue. Please could you run DBCC CHECKDB to diagnose
any storage issues. If there are some, you might need to run the same
command to repair the system.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Hello Paul
I run the DBCC CHECKDB. But I get no error messages.
Rgds
SouRa
"Paul Ibison" wrote:
> SouRa,
> you could try increasing the QueryTimeout value, but the error may be
> symptomatic of a bigger issue. Please could you run DBCC CHECKDB to diagnose
> any storage issues. If there are some, you might need to run the same
> command to repair the system.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
>
|||OK - you could try reindexing some of the merge replication system tables:
dbcc dbreindex (MSmerge_contents)
dbcc dbreindex (MSmerge_tombstone)
dbcc dbreindex (MSmerge_replinfo)
dbcc dbreindex (MSmerge_genhistory)
, increase the querytimeout then restart.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||We do a daily index of all replication tables before start of day. These
tables are indexed daily.
We have about 20 + databases on the server which are Merge replicated to a
remote server , concurrently. Our current query timeout is the default
timeout value.
How much query timeout we need to increase.?
Soura
"Paul Ibison" wrote:
> OK - you could try reindexing some of the merge replication system tables:
> dbcc dbreindex (MSmerge_contents)
> dbcc dbreindex (MSmerge_tombstone)
> dbcc dbreindex (MSmerge_replinfo)
> dbcc dbreindex (MSmerge_genhistory)
> , increase the querytimeout then restart.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
>
>
|||SouRa,
in your case I'd like to know if this solves the issue so I'd set it to an
extremely big number - just to see if the error still occurs.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Hi Paul,
I want to increase query timeout value but I don't how to do this. Please
advise me how to change timeout value. Is it possible to set this for a
particular database?
Thanks,
Soura.
"Paul Ibison" wrote:
> SouRa,
> in your case I'd like to know if this solves the issue so I'd set it to an
> extremely big number - just to see if the error still occurs.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>
>
>
>
|||Dear Paul,
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
"SouRa" wrote:
[vbcol=seagreen]
> Hi Paul,
> I want to increase query timeout value but I don't how to do this. Please
> advise me how to change timeout value. Is it possible to set this for a
> particular database?
> Thanks,
> Soura.
> "Paul Ibison" wrote:
|||(replied to this above...)
Cheers,
Paul Ibison
sql
Replication Error
The process could not execute 'sp_repldone/sp_replcounters'
Thanks
Carlo Sorrel
If you look in the agent history, is there any extended information, like a
timeout? If so, you could increase the timeout values using agent
parameters. See logreader agent utility in SQL Server 2000 Books Online.
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
"Carlo Sorrel" <csorrel@.hotmail.com> wrote in message
news:eGwxqXw2FHA.892@.TK2MSFTNGP12.phx.gbl...
I need help, replication error
The process could not execute 'sp_repldone/sp_replcounters'
Thanks
Carlo Sorrel
replication error
getting the following error "The process encountered invalid column
data in bcp file", the bcp file is too big to investigate it, any one
has any insight of this?
Did this ever work? By default SQL Server maps the SQL Server datatypes to
the Oracle datatypes, so it should be able to construct the table on Oracle
and bcp the data there. You might want to try it with a null filter to see
if the problem exists with the schema or the data.
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
"shunyen" <kate.s.chiang@.healthnet.com> wrote in message
news:1175209502.943214.313370@.d57g2000hsg.googlegr oups.com...
> we are replicating from SQL 2000 to Oracle via linked server. and are
> getting the following error "The process encountered invalid column
> data in bcp file", the bcp file is too big to investigate it, any one
> has any insight of this?
>
|||It worked before, the table got rebuilt and we have to recreate the
replication and this shows up. what do you meen to use a null
filter?
On Mar 30, 5:56 am, "Hilary Cotter" <hilary.cot...@.gmail.com> wrote:
> Did this ever work? By default SQL Server maps the SQL Server datatypes to
> the Oracle datatypes, so it should be able to construct the table on Oracle
> and bcp the data there. You might want to try it with a null filter to see
> if the problem exists with the schema or the data.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?http://www.nwsu.com/0974973602.html
> Looking for a FAQ on Indexing Services/SQL FTShttp://www.indexserverfaq.com
> "shunyen" <kate.s.chi...@.healthnet.com> wrote in message
> news:1175209502.943214.313370@.d57g2000hsg.googlegr oups.com...
>
>
> - Show quoted text -
|||A filter that looks like this
where 1=2
It always evaluates to false.
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
"shunyen" <kate.s.chiang@.healthnet.com> wrote in message
news:1175268021.364120.267330@.p77g2000hsh.googlegr oups.com...
> It worked before, the table got rebuilt and we have to recreate the
> replication and this shows up. what do you meen to use a null
> filter?
>
> On Mar 30, 5:56 am, "Hilary Cotter" <hilary.cot...@.gmail.com> wrote:
>
REPLICATION ERROR
I am dealing with merge replication between local & remote servers.
Last week the following error occurs two times.
The merge process could not perform retention-based meta data cleanup in
database 'TEST'.
(Source: Merge Replication Provider (Agent); Error number: -2147199467)
The merge process timed out while executing a query. Reconfigure the
QueryTimeout parameter and retry the operation.
(Source: TSERVER (Data source); Error number: 0)
First I gave 'start synchronizing' after that I restarted the merge agent
but no use .
Finally after restarting the server(publisher), it came to end. Now its
working fine.
My question is,
1. what is the reason for this error?
2. Is this a Symptom for future problems (ie., like database corruption)
but when I run CHECKDB command, no error has been shown. It says the DB
is fine.
Can any one advice me?
Thanks,
Soura.
This error is basically a timeout and can happen for many reasons. They
are usually assoicated with slow servers or subscribers but could also
be network problems. Reindexing your tables, especially
msmerge_contents, msmerge_Genhistory, msmerge_tombstone can help if you
have a lot of replication metadata. If you have a large amount of
metadata in those tables you can also run sp_mergecleanupmetadata. This
will cause you to generate and apply a new snapshot however. If you
choose to use the sp_mergecleanupmeta data and have a large number or
rows in your merge tables. You might want to truncate the
msmerge_contents and maybe the msmerge_genhistory table at the
publisher and subcribers before running as it will also get a timeout
doing the cleanup.
|||Hi Sounder,
I found this from One article.
In case of this error
stop the merge agent and do a dbcc dbreindex -- to all tables by using that
reindex procedure.
Thanks.
Herbert
"SouRa" wrote:
> Hi,
> I am dealing with merge replication between local & remote servers.
> Last week the following error occurs two times.
> The merge process could not perform retention-based meta data cleanup in
> database 'TEST'.
> (Source: Merge Replication Provider (Agent); Error number: -2147199467)
> ----
> --
> The merge process timed out while executing a query. Reconfigure the
> QueryTimeout parameter and retry the operation.
> (Source: TSERVER (Data source); Error number: 0)
> First I gave 'start synchronizing' after that I restarted the merge agent
> but no use .
> Finally after restarting the server(publisher), it came to end. Now its
> working fine.
> My question is,
> 1. what is the reason for this error?
> 2. Is this a Symptom for future problems (ie., like database corruption)
> but when I run CHECKDB command, no error has been shown. It says the DB
> is fine.
> Can any one advice me?
> Thanks,
> Soura.
|||Hi Sounder,
I find this from one article.
In case of these kind of error
stop the merge agent and do a dbcc dbreindex -- Do reindex to all tables
using that procedure
Thanks
Herbert
"SouRa" wrote:
> Hi,
> I am dealing with merge replication between local & remote servers.
> Last week the following error occurs two times.
> The merge process could not perform retention-based meta data cleanup in
> database 'TEST'.
> (Source: Merge Replication Provider (Agent); Error number: -2147199467)
> ----
> --
> The merge process timed out while executing a query. Reconfigure the
> QueryTimeout parameter and retry the operation.
> (Source: TSERVER (Data source); Error number: 0)
> First I gave 'start synchronizing' after that I restarted the merge agent
> but no use .
> Finally after restarting the server(publisher), it came to end. Now its
> working fine.
> My question is,
> 1. what is the reason for this error?
> 2. Is this a Symptom for future problems (ie., like database corruption)
> but when I run CHECKDB command, no error has been shown. It says the DB
> is fine.
> Can any one advice me?
> Thanks,
> Soura.
Tuesday, March 20, 2012
Replication and Licensing
their SQL Server 2000 (Standard). It's either Server plus device CAL or
Server plus user CAL. I think they have 35 CAL.
Now, what will we need to do with regard to licensing if we add in a new,
separate machine to be a subscriber in transactional replication. Will they
have to purchace an whole new set of licences?
Thanks,
Tom
As I dig along, it looks to me like I just need to get them to skin down for
one more server licence @. $667 US per server according to
http://www.microsoft.com/sql/howtobuy/default.asp
Does that seem right?
"Tom Gaughan" <tgaughan@.numail.org> wrote in message
news:OURp501aEHA.2340@.TK2MSFTNGP09.phx.gbl...
> I'm in the process of discovering what type of licensing my client has for
> their SQL Server 2000 (Standard). It's either Server plus device CAL or
> Server plus user CAL. I think they have 35 CAL.
> Now, what will we need to do with regard to licensing if we add in a new,
> separate machine to be a subscriber in transactional replication. Will
they
> have to purchace an whole new set of licences?
> Thanks,
> Tom
>
Monday, March 12, 2012
REplication and BLOB tables
The process could not bulk copy into table '"JobApplBlob200501"'.
Expected the text length in data stream for bulk copy of text, ntext, or
image data.
(Source: ELMER (Data source); Error number: 4813)
Elmer is the Subscribing system.
The only odd thing I can see is the publisher and subscriber are build 922.
The distribution host server is build 818. I have other BLOB fields going
from the same publisher to the same subscriber through the same distributor.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.org
Is this transactional replication ? Is this error during initial snapshot or
during intial load on the subscribers. I have included the replication group
'cos you have some experts in there like Hilary and Paul who can help
"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:e20gvdqAFHA.2584@.TK2MSFTNGP09.phx.gbl...
> Anyone ever see this error:
>
> The process could not bulk copy into table '"JobApplBlob200501"'.
> Expected the text length in data stream for bulk copy of text, ntext, or
> image data.
> (Source: ELMER (Data source); Error number: 4813)
>
> Elmer is the Subscribing system.
> The only odd thing I can see is the publisher and subscriber are build
922.
> The distribution host server is build 818. I have other BLOB fields going
> from the same publisher to the same subscriber through the same
distributor.
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
>
REplication and BLOB tables
The process could not bulk copy into table '"JobApplBlob200501"'.
Expected the text length in data stream for bulk copy of text, ntext, or
image data.
(Source: ELMER (Data source); Error number: 4813)
Elmer is the Subscribing system.
The only odd thing I can see is the publisher and subscriber are build 922.
The distribution host server is build 818. I have other BLOB fields going
from the same publisher to the same subscriber through the same distributor.
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.orgIs this transactional replication ? Is this error during initial snapshot or
during intial load on the subscribers. I have included the replication group
'cos you have some experts in there like Hilary and Paul who can help
"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:e20gvdqAFHA.2584@.TK2MSFTNGP09.phx.gbl...
> Anyone ever see this error:
>
> The process could not bulk copy into table '"JobApplBlob200501"'.
> Expected the text length in data stream for bulk copy of text, ntext, or
> image data.
> (Source: ELMER (Data source); Error number: 4813)
>
> Elmer is the Subscribing system.
> The only odd thing I can see is the publisher and subscriber are build
922.
> The distribution host server is build 818. I have other BLOB fields going
> from the same publisher to the same subscriber through the same
distributor.
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
>
REplication and BLOB tables
The process could not bulk copy into table '"JobApplBlob200501"'.
Expected the text length in data stream for bulk copy of text, ntext, or
image data.
(Source: ELMER (Data source); Error number: 4813)
Elmer is the Subscribing system.
The only odd thing I can see is the publisher and subscriber are build 922.
The distribution host server is build 818. I have other BLOB fields going
from the same publisher to the same subscriber through the same distributor.
--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
Careerbuilder.com
I support the Professional Association for SQL Server
www.sqlpass.orgIs this transactional replication ? Is this error during initial snapshot or
during intial load on the subscribers. I have included the replication group
'cos you have some experts in there like Hilary and Paul who can help
"Geoff N. Hiten" <SRDBA@.Careerbuilder.com> wrote in message
news:e20gvdqAFHA.2584@.TK2MSFTNGP09.phx.gbl...
> Anyone ever see this error:
>
> The process could not bulk copy into table '"JobApplBlob200501"'.
> Expected the text length in data stream for bulk copy of text, ntext, or
> image data.
> (Source: ELMER (Data source); Error number: 4813)
>
> Elmer is the Subscribing system.
> The only odd thing I can see is the publisher and subscriber are build
922.
> The distribution host server is build 818. I have other BLOB fields going
> from the same publisher to the same subscriber through the same
distributor.
> --
> Geoff N. Hiten
> Microsoft SQL Server MVP
> Senior Database Administrator
> Careerbuilder.com
> I support the Professional Association for SQL Server
> www.sqlpass.org
>
Replication : The process coule not read file?
Hi.everyone.I use two computer in workgroup.I use A to be a publisher and distributor ,B to a Subscrible.When i create a snop in A computer and Create snopshot in "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\repldata\unc",when I use "view Synchronization Status" in B computer, the show "job already success start",but in A computer sqlserver error log show "Message
Replication-: agent LIUQINA\SERVER2005-TestTran-Tran-LIUQIANHOME\HOME-6 failed. The process could not read file 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\ReplData\unc\LIUQINA$SERVER2005_TESTTRAN_TRAN\20070409150285\name_2.pre' due to OS error 3.". The publisher snapshot agent is servername\administrator.
I find a lot of message in internet ,but no one can help me .I try use same account and password in two computer.but no help.
Please tell me why and how to solve it ? Thanks.
Hello liuqian5036
You must use a UNC (Universal Naming Convention) for the path. A local path is not a valid path for the snapshot folder. For example, you should use \\<ServerName>\ReplData instead of "C:\....". You should share this folder on the network and give the snapshot account the necessary access rights to reach that folder. (read, write and modify is enough)
This address is specified when you configure the distributor. So you may go to the Replication folder in SQL Server instance you want to work on and then right click on the Replication folder and click Distributor Properties and click Publishers... item in the left panel. You will see Distribution Database column in the view and <Distributor Name>. Click the "..." just at the right side of it and change "Default Snapshot Folder" path as i told you above.
Ekrem ?nsoy
MCP, MCDST, MCDBA, MCAD.Net, MCSD.Net, MCSA, MCSE
|||Thank you very much,enaksanamun .but i have another question,When i run subscription ,I can see the replication is success,but In "View Synchronization Status" dialog it always run don't tell me it success.Why?|||You are welcome liuqian5036.
I need you to tell me the story more specific please. For example, what kind of replication do you use? (Snapshot, Transactional, Merge).
What do you see on the Synchronization Status window? OK icon or Error icon? And please check the history out. Write here what it says on the history.
Ekrem ?nsoy
MCP, MCDST, MCDBA, MCAD.Net, MCSD.Net, MCSA, MCSE
|||Hi.Ekrem.Thank you.I am sorry to say I mistake the conception of "Synchronization Status Window",It's ok,no problem.Thank you help.Wednesday, March 7, 2012
Replication - can subscriber objects be pre-existing?
Who is right? I haven't been able to find an answer from the Microsoft site and news groups.
Thanks,I hate to be the bearer of bad news for you, but your manager is correct in this instance.
Here's the link to get you started:
http://support.microsoft.com/kb/320499/en-us
It really does speed things up!
Tom
Replication
and Access to MySQL...
Thanks and waiting for your reply
Hi
SQL Server Replication:
http://www.microsoft.com/sql/evaluat...eplication.asp
http://msdn.microsoft.com/library/de...ogrdi_63ar.asp
For MySQL, ask the guys who wrote that.
Regards
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"John" <naissani@.hotmail.com> wrote in message
news:eDE1VQELFHA.3788@.tk2msftngp13.phx.gbl...
> Can any one let me know the process of Replication b/w access - SQL Server
> and Access to MySQL...
> Thanks and waiting for your reply
>
>