all groups > sql server replication > october 2003 >
You're in the

sql server replication

group:

Merge Replication mit SQL2000


Merge Replication mit SQL2000 andreas NO[at]SPAM kottbusch.com
10/7/2003 10:18:15 AM
sql server replication:
Hallo,

ich habe ein Phänomen bei einer "Merge-Replikation" mit SQL2000.
Das Aufsetzen der Replikation und die Replikation selbst funktioniert
einwandfrei.
Wenn ich nun im Anschluß über "rechte Maustatste-Eigenschaften" mir
die Anzahl der Zeilen einer bestimmten Tabelle der Quell-DB anzeigen
lassen, behauptet SQL Enterprise Manager, es wären 18.469 Zeilen in
der Tabelle enthalten.
Die gleiche Abfrage auf der Ziel-DB (also replizierten DB) bringt für
dieselbe (replizierte) Tabelle 24.875 als Ergebnis.
Bischen verwunderlich, aber: soweit, sogut.

Beim Versuch die Quell-Tabelle in ein Text-File zu exportieren (um es
mit einem Export der Ziel-Tabelle zu vergleichen) bekomme ich als
Ergebnis des Exports (der Quell-Tabelle) 24.875 Zeilen exportiert. Zur
Erinnerung: "rechte Maustaste - Eigenschaften" innerhalb SQL
Enterprise Manager behauptet von der selben Tabelle, es wären nur
18.469 Zeilen enthalten.

Bestätigt wird dieses Ergebnis auch, wenn ich direkt in SQL ein
"Select count(*)" auf die Tabelle absetze. Auch hier kommt als
Ergebnis 24.875 Zeilen zurück.

Kann mir jemand erklären, warum die Abfrage mit "rechte Maustaste -
Eigenschaften" innerhalb SQL-Enterprise Manager behauptet, es wären
nur 18.469 Zeilen enthalten, obwohl es nachweislich 24.875 Zeilen
sind?

Vielen Dank und viele Grüße

Merge Replication mit SQL2000 - Translation Hilary Cotter
10/7/2003 12:18:13 PM
Hello,=20

I have a problem with a "Merge Replication" with SQL2000. =20
Putting the Replication on and the Replication function=20
works perfectly. If I now in the connection over "right=20
mouse act width unit characteristics" me the number of=20
rows of a certain table of the source railways indicate=20
let, SQL Enterprise manager, there maintains 18,469 rows=20
would be found in the table. The same inquiry on the goal=20
railways (thus railways made a replication) brings 24.875=20
for the same (made a replication) table as result. Bi=20
amazingly, but: so far, sogut. With the attempt the=20
source table in a text file to export to compare (in order=20
it with an export of the goal table) I get as result of=20
the export (the source table) 24,875 lines exported. To=20
the memory: "right mouse button - characteristics" within=20
SQL Enterprise manager stated of the same table, there=20
would be found of only 18,469 lines. This result is=20
confirmed, if I directly in SQL a "SELECT count(*)" on the=20
table also sets off. Returns also here as result 24,875=20
lines. Can someone explain to me, why the inquiry=20
with "right mouse button - maintains characteristics"=20
within SQL Enterprise manager, only 18,469 lines would be=20
contained, although there is as can be prove 24,875=20
lines? =20

Thank you and many greetings Andreas Kottbusch.
[quoted text, click to view]
Merge Replication mit SQL2000 Hilary Cotter
10/7/2003 12:20:42 PM
make sure that auto update statistics is on for your=20
database. There will be a very slight performance hit=20
with this option for inserts and deletes.

Basically EM is using cached information and the indexes=20
which it occassionally consults is not up to date. With=20
this option they should be in sync.

you can use the replication stored procedures=20
sp_validate_publication to get a better idea if=20
replication is working correctly.

-- translation

=FCberpr=FCfen Sie, ob Selbstupdatestatistiken eingeschaltet=20
f=FCr Ihre Datenbank ist. Es gibt einen sehr geringf=FCgigen=20
Leistungserfolg mit dieser Wahl f=FCr Eins=E4tze und=20
L=F6schungen. Im Allgemeinen verwendet EM cachierte=20
Informationen und die Indizes, die sie occassionally=20
ber=E4t, ist nicht aktuell. Mit dieser Wahl sollten sie in=20
Synchronisierung sein. Sie k=F6nnen das Reproduktion=20
gespeicherte Verfahrenssp_validate_publication verwenden,=20
um eine bessere Idee zu erhalten, wenn Reproduktion=20
richtig arbeitet.
[quoted text, click to view]
AddThis Social Bookmark Button