I have a system where I utilize merge replication between sqlserver2000 and
pocketpc sqlservece 2.0. The setup is very mature, and has been working fine
until I had my customer "refresh" the database with new data. We're still in
the testing phase, and the database I connect to is a copy of their live
one. After the database was restored from a backup of the live database, I
get the following error on the pocketpc when attempting to perform a merge.
Unique indexes and constraints cannot be created on columns that allow null
values
That's as descriptive as the error gets. I have a few questions:
Is there any place either on the server or the pocketpc that I can find a
log with more information. The publication has many articles with many
fields. I can remove one at a time and figure out which one is causing the
problem, but it will take lots of time. I was hoping to find some
information as to which table is causing the problem.
Also I'm having difficulty removing an article from a publication after
subscriptions have been pulled or attempted to be pulled. I've
re-initialized subscriptions, but the articles cannot be removed. What's the
procedure for doing this?
sorry about double post, I got an error message that the first one wasn't
sent!
"mgarner1980" <mgarner@.kbsi.com> wrote in message
news:%23aiSjpAeFHA.3028@.TK2MSFTNGP09.phx.gbl...
> I have a system where I utilize merge replication between sqlserver2000
and
> pocketpc sqlservece 2.0. The setup is very mature, and has been working
fine
> until I had my customer "refresh" the database with new data. We're still
in
> the testing phase, and the database I connect to is a copy of their live
> one. After the database was restored from a backup of the live database, I
> get the following error on the pocketpc when attempting to perform a
merge.
> Unique indexes and constraints cannot be created on columns that allow
null
> values
>
> That's as descriptive as the error gets. I have a few questions:
>
> Is there any place either on the server or the pocketpc that I can find a
> log with more information. The publication has many articles with many
> fields. I can remove one at a time and figure out which one is causing the
> problem, but it will take lots of time. I was hoping to find some
> information as to which table is causing the problem.
>
> Also I'm having difficulty removing an article from a publication after
> subscriptions have been pulled or attempted to be pulled. I've
> re-initialized subscriptions, but the articles cannot be removed. What's
the
> procedure for doing this?
>
Showing posts with label update. Show all posts
Showing posts with label update. Show all posts
Friday, March 30, 2012
replication error after database update
Labels:
andpocketpc,
database,
error,
mature,
merge,
microsoft,
mysql,
oracle,
replication,
server,
setup,
sql,
sqlservece,
sqlserver2000,
system,
update,
utilize,
working
Monday, March 26, 2012
Replication Dilemma - Need a Solution/Ideas
Hi all,
Here's a situation I have been challenged with....
I will have up to 6 remote databases and I want them all to update a
single master database in a company with multiple production plants.
The remote databases will just have active work in a plant and only the
work that is in that particular plant. I would like the master
database to have all information from the plants. Ideally, the remote
plants will update the master database once an hour (consisting of new
inserts of orders coming into the plant and updated records as work
moves through the plant). Once work ships from a plant, I want to purge
it off the remote plant database, yet keep it on the master.
It seems with replication, if I delete records at a plant, it will
delete on the master, which is not what I want. The master is
basically the database customer service will use and needs active
status on work in the plants and would contain a couple of years of
information. The remote plant databases have just the data they need
and our optimized. A remote database has 20 tables, with multiple
tables with 1 to 20 million records actively inserted/udated each day.
The schema of the master is identical to the plants and all keys at
each plant are guaranteed unique.
Any ideas would be greatly appreciated, as I am currently contemplating
using bcp in an automated fashion and anticipating a nightmare of
keeping referential integrity.
Regards
What I think you need to do is the following.
1) create a filter on your publications which filter by plant id. Hopefully
you have a column to do this with. Then when you create you publication and
get to the specify articles dialog click on the browse button to the right
of your tables. Select the snapshot tab, and select the option to delete the
data which matches the row filter.
2) In the table article properties dialog, click on the commands tab and
replace the delete command with the word NONE - this will prevent deletes
from being replicated
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
<davidkrainess@.yahoo.com> wrote in message
news:1131135473.722037.278030@.g44g2000cwa.googlegr oups.com...
> Hi all,
> Here's a situation I have been challenged with....
>
> I will have up to 6 remote databases and I want them all to update a
> single master database in a company with multiple production plants.
> The remote databases will just have active work in a plant and only the
> work that is in that particular plant. I would like the master
> database to have all information from the plants. Ideally, the remote
> plants will update the master database once an hour (consisting of new
> inserts of orders coming into the plant and updated records as work
> moves through the plant). Once work ships from a plant, I want to purge
> it off the remote plant database, yet keep it on the master.
> It seems with replication, if I delete records at a plant, it will
> delete on the master, which is not what I want. The master is
> basically the database customer service will use and needs active
> status on work in the plants and would contain a couple of years of
> information. The remote plant databases have just the data they need
> and our optimized. A remote database has 20 tables, with multiple
> tables with 1 to 20 million records actively inserted/udated each day.
> The schema of the master is identical to the plants and all keys at
> each plant are guaranteed unique.
> Any ideas would be greatly appreciated, as I am currently contemplating
> using bcp in an automated fashion and anticipating a nightmare of
> keeping referential integrity.
> Regards
>
|||Thanks...
My initial thoughts were a bcp dump, zipping the data, sending it over
the WAN, and unzipping then loading it with update/insert SPs. bcp is
incredibly fast, but this strategy requires a lot of management
applications written to ensure the data gets to the master and there
might be loss of some referential integrity as each bcp command would
dump a table at a different time interval (that would be fixed in the
next hourly update). I am intrigued by the replication strategy
because of it's ease of use.
Assuming I have the distributon on the master, what is the performance
impact on the plant databases, assuming a publishing every hour. I am
concerned that the overhead of a replication scheme is vastly greater
than a bcp dump.
What is going on with the replication and how do people set this up. I
guess I was thinking of each plant's database dumping it's repl data on
a remote share over a WAN on the distribution server. I was thinking
the Master would reside on the same server as the distribution (why not
take advantage of loading the data off of a local disk). bw, I would
rather take slowness on the master than in a production facility.
Also...what's the overhead of the replication dump, is it similar to a
log? Given a WAN is down, would sql recover and recopy the replication
data when the WAN came backup?
Also, is this information in any of the replication books out there
(I.E. enterprise strategies for moving data) with pros and cons of
different methods.
Here's a situation I have been challenged with....
I will have up to 6 remote databases and I want them all to update a
single master database in a company with multiple production plants.
The remote databases will just have active work in a plant and only the
work that is in that particular plant. I would like the master
database to have all information from the plants. Ideally, the remote
plants will update the master database once an hour (consisting of new
inserts of orders coming into the plant and updated records as work
moves through the plant). Once work ships from a plant, I want to purge
it off the remote plant database, yet keep it on the master.
It seems with replication, if I delete records at a plant, it will
delete on the master, which is not what I want. The master is
basically the database customer service will use and needs active
status on work in the plants and would contain a couple of years of
information. The remote plant databases have just the data they need
and our optimized. A remote database has 20 tables, with multiple
tables with 1 to 20 million records actively inserted/udated each day.
The schema of the master is identical to the plants and all keys at
each plant are guaranteed unique.
Any ideas would be greatly appreciated, as I am currently contemplating
using bcp in an automated fashion and anticipating a nightmare of
keeping referential integrity.
Regards
What I think you need to do is the following.
1) create a filter on your publications which filter by plant id. Hopefully
you have a column to do this with. Then when you create you publication and
get to the specify articles dialog click on the browse button to the right
of your tables. Select the snapshot tab, and select the option to delete the
data which matches the row filter.
2) In the table article properties dialog, click on the commands tab and
replace the delete command with the word NONE - this will prevent deletes
from being replicated
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
<davidkrainess@.yahoo.com> wrote in message
news:1131135473.722037.278030@.g44g2000cwa.googlegr oups.com...
> Hi all,
> Here's a situation I have been challenged with....
>
> I will have up to 6 remote databases and I want them all to update a
> single master database in a company with multiple production plants.
> The remote databases will just have active work in a plant and only the
> work that is in that particular plant. I would like the master
> database to have all information from the plants. Ideally, the remote
> plants will update the master database once an hour (consisting of new
> inserts of orders coming into the plant and updated records as work
> moves through the plant). Once work ships from a plant, I want to purge
> it off the remote plant database, yet keep it on the master.
> It seems with replication, if I delete records at a plant, it will
> delete on the master, which is not what I want. The master is
> basically the database customer service will use and needs active
> status on work in the plants and would contain a couple of years of
> information. The remote plant databases have just the data they need
> and our optimized. A remote database has 20 tables, with multiple
> tables with 1 to 20 million records actively inserted/udated each day.
> The schema of the master is identical to the plants and all keys at
> each plant are guaranteed unique.
> Any ideas would be greatly appreciated, as I am currently contemplating
> using bcp in an automated fashion and anticipating a nightmare of
> keeping referential integrity.
> Regards
>
|||Thanks...
My initial thoughts were a bcp dump, zipping the data, sending it over
the WAN, and unzipping then loading it with update/insert SPs. bcp is
incredibly fast, but this strategy requires a lot of management
applications written to ensure the data gets to the master and there
might be loss of some referential integrity as each bcp command would
dump a table at a different time interval (that would be fixed in the
next hourly update). I am intrigued by the replication strategy
because of it's ease of use.
Assuming I have the distributon on the master, what is the performance
impact on the plant databases, assuming a publishing every hour. I am
concerned that the overhead of a replication scheme is vastly greater
than a bcp dump.
What is going on with the replication and how do people set this up. I
guess I was thinking of each plant's database dumping it's repl data on
a remote share over a WAN on the distribution server. I was thinking
the Master would reside on the same server as the distribution (why not
take advantage of loading the data off of a local disk). bw, I would
rather take slowness on the master than in a production facility.
Also...what's the overhead of the replication dump, is it similar to a
log? Given a WAN is down, would sql recover and recopy the replication
data when the WAN came backup?
Also, is this information in any of the replication books out there
(I.E. enterprise strategies for moving data) with pros and cons of
different methods.
Replication Deadlock...I think
I am running a select cursor on spid:61 and an update statement (on a table common with the select in spid:61) on spid:51. While running, I experience a deadlock. The Enterprise Manager reports that spid:61 (Blocking) and spid:51 (Blocked by 61). SP_LOCK reports the following (with object_name resolved):
object_name spid mode status
------- ---- ---- --
NULL 51 S GRANT
sp_MSaddpub_snapshot 51 IX WAIT
sp_replflush 61 IS GRANT
sp_replcounters 61 IS GRANT
sp_changesubscriptio 61 IS GRANT
sp_MSscript_sync_del 61 IS GRANT
sp_MSscript_sync_ins 61 IS GRANT
sp_replpostschema 61 IS GRANT
sp_articleview 61 IS GRANT
sp_MSaddschemaarticl 61 IS GRANT
sp_changemergepublic 61 IS GRANT
sp_MSmakeconflicttab 61 IS GRANT
sp_MScopyscriptfile 61 IS GRANT
sp_MSuniquecolname 61 IS GRANT
sp_MSget_synctran_co 61 IS GRANT
sp_MShelptranconflic 61 IS GRANT
sp_replsetsyncstatus 61 IS GRANT
sp_MSaddpub_snapshot 61 S GRANT
NULL 61 S GRANT
(19 row(s) affected)
I see that the two SPIDs have the sp_MSaddpub_snapshot in common. This stored procedure attempts to update the syspublications table however I fail to see why this would generate a deadlock. I have rebooted the server, disabled and re-enabled replication. Any help would be appreciated.
--Other info--
Microsoft SQL Server 2000 Enterprise sp3 (active-passive cluster)
4 x 1.4ghz Xeon, 8gig (/3gb /pae)
Microsoft Windows 2000 Advanced Server sp3 (Identical active-passive nodes)
Database connection thru Trifox's "Vortex" DBlib linked client-server driver.What type of replication are you using ? Can you post what you are doing with the select cursor/update ?|||Also, does the deadlock occur immediately ?|||>>What kind of replication?
The server was initially set up with trans replication. I have since rebooted and removed replication alltogether and selectivly readded components, reproducing the deadlock behavior at every step.
>>does it happen immediately?
There are a number of other SELECT statements between the (Blocking) SELECT statement and when the UPDATE fires (approx 60-90 sec later). I can see the SQL:STMTStarting in the Profiler for the UPDATE statement however it never completes before the one hour connection timeout from the Vortex driver. I can KILL the SPID for the (Blocking) SELECT statement and then the (Blocked) UPDATE will fire. . . however I am not done fetching records from the SELECT recordset and the "fetch next row" from that cursor will fail (ConnectionWrite(Send())) or something like that -- typical MS message when trying to work with a connection killed at the server level. The SP_LOCK information indicates that the initial SELECT does not have any table locks and only low level child REPLICATION stored procedures are holding any locks.
>>What are the statements?
The initial SELECT statement is about 3 pages long with a number of sub-selects and derived tables from about 12 different tables. I really hope the solution does not depend on the nature of the SELECT statement; however I will post it if you feel it will help. I can run the SELECT statement in the QA without any problems. It returns the thousand or so expected records in about 30 seconds.
The UPDATE statement is trival e.g.
UPDATE owner.table
set column_a = 1
where column_b = 'value'
I appreciate your time.|||Have you tried adding readuncommitted/nolock to your select statement (because this sounds like nested transactions that are attempting to lock the same resource) ? Realize that this will give you dirty records - but test it to see if you still have the problem.|||I see now... The profiler reveals Lock Escalations (after a bit) which then cause the blocking. The NOLOCK seems to supress the lock escalation. Thank you.|||Originally posted by Makallus
I see now... The profiler reveals Lock Escalations (after a bit) which then cause the blocking. The NOLOCK seems to supress the lock escalation. Thank you.
Yeah, and let's you read uncommited transactions...
Expect miracles to start happening...|||Originally posted by Makallus
>>>>What are the statements?
The initial SELECT statement is about 3 pages long with a number of sub-selects and derived tables from about 12 different tables. I really hope the solution does not depend on the nature of the SELECT statement; however I will post it if you feel it will help. I can run the SELECT statement in the QA without any problems. It returns the thousand or so expected records in about 30 seconds.
What do you do with the result set? ARe youdragging thousands of rows to the client?
Is it done in a sproc?
Are you placing the results in table variables?
How does your update coorelate to the thousands of rows?
Why do the SELECT at all? Why not make the UPDATE a JOIN?|||I would look at your logic and modify it to prevent the lock escalation. Depending on your database/applications, reading dirty records could cause some major problems.|||All excellent replies. The reasons we (the company) do things this way come directly from Dilbert comic strips.
Brett, ever code in Dibol? What's better than coding in Dibol with database access is the fantasy we will be database independent. The idea being we can slap in any database the customer likes with no impact on the application. Shall I go on? However I understand your questions and I believe in time the application will behave more like it was written for a database than an ISAM file.
Rnealejr, this problem only occurs at a site where replication is enabled . . . given that there is no replication I do not appear to exceed the lock threshold.
As for doing things right. . . all good things in time.|||The lock escalation issue may appear in non-replication scenarios as well - but be intermittent. I just wanted to make sure that you understood the ramifications.sql
object_name spid mode status
------- ---- ---- --
NULL 51 S GRANT
sp_MSaddpub_snapshot 51 IX WAIT
sp_replflush 61 IS GRANT
sp_replcounters 61 IS GRANT
sp_changesubscriptio 61 IS GRANT
sp_MSscript_sync_del 61 IS GRANT
sp_MSscript_sync_ins 61 IS GRANT
sp_replpostschema 61 IS GRANT
sp_articleview 61 IS GRANT
sp_MSaddschemaarticl 61 IS GRANT
sp_changemergepublic 61 IS GRANT
sp_MSmakeconflicttab 61 IS GRANT
sp_MScopyscriptfile 61 IS GRANT
sp_MSuniquecolname 61 IS GRANT
sp_MSget_synctran_co 61 IS GRANT
sp_MShelptranconflic 61 IS GRANT
sp_replsetsyncstatus 61 IS GRANT
sp_MSaddpub_snapshot 61 S GRANT
NULL 61 S GRANT
(19 row(s) affected)
I see that the two SPIDs have the sp_MSaddpub_snapshot in common. This stored procedure attempts to update the syspublications table however I fail to see why this would generate a deadlock. I have rebooted the server, disabled and re-enabled replication. Any help would be appreciated.
--Other info--
Microsoft SQL Server 2000 Enterprise sp3 (active-passive cluster)
4 x 1.4ghz Xeon, 8gig (/3gb /pae)
Microsoft Windows 2000 Advanced Server sp3 (Identical active-passive nodes)
Database connection thru Trifox's "Vortex" DBlib linked client-server driver.What type of replication are you using ? Can you post what you are doing with the select cursor/update ?|||Also, does the deadlock occur immediately ?|||>>What kind of replication?
The server was initially set up with trans replication. I have since rebooted and removed replication alltogether and selectivly readded components, reproducing the deadlock behavior at every step.
>>does it happen immediately?
There are a number of other SELECT statements between the (Blocking) SELECT statement and when the UPDATE fires (approx 60-90 sec later). I can see the SQL:STMTStarting in the Profiler for the UPDATE statement however it never completes before the one hour connection timeout from the Vortex driver. I can KILL the SPID for the (Blocking) SELECT statement and then the (Blocked) UPDATE will fire. . . however I am not done fetching records from the SELECT recordset and the "fetch next row" from that cursor will fail (ConnectionWrite(Send())) or something like that -- typical MS message when trying to work with a connection killed at the server level. The SP_LOCK information indicates that the initial SELECT does not have any table locks and only low level child REPLICATION stored procedures are holding any locks.
>>What are the statements?
The initial SELECT statement is about 3 pages long with a number of sub-selects and derived tables from about 12 different tables. I really hope the solution does not depend on the nature of the SELECT statement; however I will post it if you feel it will help. I can run the SELECT statement in the QA without any problems. It returns the thousand or so expected records in about 30 seconds.
The UPDATE statement is trival e.g.
UPDATE owner.table
set column_a = 1
where column_b = 'value'
I appreciate your time.|||Have you tried adding readuncommitted/nolock to your select statement (because this sounds like nested transactions that are attempting to lock the same resource) ? Realize that this will give you dirty records - but test it to see if you still have the problem.|||I see now... The profiler reveals Lock Escalations (after a bit) which then cause the blocking. The NOLOCK seems to supress the lock escalation. Thank you.|||Originally posted by Makallus
I see now... The profiler reveals Lock Escalations (after a bit) which then cause the blocking. The NOLOCK seems to supress the lock escalation. Thank you.
Yeah, and let's you read uncommited transactions...
Expect miracles to start happening...|||Originally posted by Makallus
>>>>What are the statements?
The initial SELECT statement is about 3 pages long with a number of sub-selects and derived tables from about 12 different tables. I really hope the solution does not depend on the nature of the SELECT statement; however I will post it if you feel it will help. I can run the SELECT statement in the QA without any problems. It returns the thousand or so expected records in about 30 seconds.
What do you do with the result set? ARe youdragging thousands of rows to the client?
Is it done in a sproc?
Are you placing the results in table variables?
How does your update coorelate to the thousands of rows?
Why do the SELECT at all? Why not make the UPDATE a JOIN?|||I would look at your logic and modify it to prevent the lock escalation. Depending on your database/applications, reading dirty records could cause some major problems.|||All excellent replies. The reasons we (the company) do things this way come directly from Dilbert comic strips.
Brett, ever code in Dibol? What's better than coding in Dibol with database access is the fantasy we will be database independent. The idea being we can slap in any database the customer likes with no impact on the application. Shall I go on? However I understand your questions and I believe in time the application will behave more like it was written for a database than an ISAM file.
Rnealejr, this problem only occurs at a site where replication is enabled . . . given that there is no replication I do not appear to exceed the lock threshold.
As for doing things right. . . all good things in time.|||The lock escalation issue may appear in non-replication scenarios as well - but be intermittent. I just wanted to make sure that you understood the ramifications.sql
replication conflict when use BEGIN TRANSACTION COMMIT TRANSACTION
Ok let me explain my problem
I update table abc to SERVER A
SERVER A push a replication to SERVER B
and SERVER B push to SERVER A and SERVER C
SERVER A and C are configure to replicate to SERVER B and
SERVER B is configure to replicate to SERVER A and SERVER C
(same tables are replicate)
I have no problem while I not use BEGIN TRANSACTION UPDATE... COMMIT
TRANSACTION
When I use BEGIN TRANSACTION UPDATE... COMMIT TRANSACTION I got a conflict
error
supp info:
2 Queued update conflict. Subscriber wins. Updating Publisher ...
"rl" <rlavoie@.lgs.com> wrote in message
news:%23jnEqEGjFHA.1232@.TK2MSFTNGP15.phx.gbl...
> Ok let me explain my problem
> I update table abc to SERVER A
> SERVER A push a replication to SERVER B
> and SERVER B push to SERVER A and SERVER C
> SERVER A and C are configure to replicate to SERVER B and
> SERVER B is configure to replicate to SERVER A and SERVER C
> (same tables are replicate)
> I have no problem while I not use BEGIN TRANSACTION UPDATE... COMMIT
> TRANSACTION
> When I use BEGIN TRANSACTION UPDATE... COMMIT TRANSACTION I got a conflict
> error
>
I update table abc to SERVER A
SERVER A push a replication to SERVER B
and SERVER B push to SERVER A and SERVER C
SERVER A and C are configure to replicate to SERVER B and
SERVER B is configure to replicate to SERVER A and SERVER C
(same tables are replicate)
I have no problem while I not use BEGIN TRANSACTION UPDATE... COMMIT
TRANSACTION
When I use BEGIN TRANSACTION UPDATE... COMMIT TRANSACTION I got a conflict
error
supp info:
2 Queued update conflict. Subscriber wins. Updating Publisher ...
"rl" <rlavoie@.lgs.com> wrote in message
news:%23jnEqEGjFHA.1232@.TK2MSFTNGP15.phx.gbl...
> Ok let me explain my problem
> I update table abc to SERVER A
> SERVER A push a replication to SERVER B
> and SERVER B push to SERVER A and SERVER C
> SERVER A and C are configure to replicate to SERVER B and
> SERVER B is configure to replicate to SERVER A and SERVER C
> (same tables are replicate)
> I have no problem while I not use BEGIN TRANSACTION UPDATE... COMMIT
> TRANSACTION
> When I use BEGIN TRANSACTION UPDATE... COMMIT TRANSACTION I got a conflict
> error
>
Wednesday, March 21, 2012
Replication and User Defined Trigger
Hi, all:
We have 5 databases which contains invoice and invoiceHistory tables.
We have an update and insert trigger on invoice table to record every
modification into InvoiceHistory table. The invoiceHistory table is not
read only, it has some fields that the end user can edit (comments,
date ...etc). At the same time, we using scheduled snapshots every 5
minutes to 'refresh' the table at the suscribers. The problem is when
the replicate server replicate table invoice to a subscribe, the
trigger on invoice table will be triggered and update/insert
InvoiceHistory table in the subscribe. Then when the replicate server
replicate table InvoiceHistory, we will get duplicate record in
InvoiceTable, one is from Invoice table trigger and another is from
InvoiceHistory replicate.
If we do not replicate InvoiceHistory table, then those fields that end
user updated can not be sync to subscribes.
Can I disable the trigger on invoice table when replication?
Does anybody there have a better idea how to do something like this?
ThanksCheck for the NOT FOR REPLICATION option. If you put it, trigger will not be
fired for replication.
MC
<rockdale.green@.gmail.com> wrote in message
news:1143418413.367012.182670@.v46g2000cwv.googlegroups.com...
> Hi, all:
> We have 5 databases which contains invoice and invoiceHistory tables.
> We have an update and insert trigger on invoice table to record every
> modification into InvoiceHistory table. The invoiceHistory table is not
> read only, it has some fields that the end user can edit (comments,
> date ...etc). At the same time, we using scheduled snapshots every 5
> minutes to 'refresh' the table at the suscribers. The problem is when
> the replicate server replicate table invoice to a subscribe, the
> trigger on invoice table will be triggered and update/insert
> InvoiceHistory table in the subscribe. Then when the replicate server
> replicate table InvoiceHistory, we will get duplicate record in
> InvoiceTable, one is from Invoice table trigger and another is from
> InvoiceHistory replicate.
>
> If we do not replicate InvoiceHistory table, then those fields that end
> user updated can not be sync to subscribes.
> Can I disable the trigger on invoice table when replication?
> Does anybody there have a better idea how to do something like this?
>
> Thanks
>
We have 5 databases which contains invoice and invoiceHistory tables.
We have an update and insert trigger on invoice table to record every
modification into InvoiceHistory table. The invoiceHistory table is not
read only, it has some fields that the end user can edit (comments,
date ...etc). At the same time, we using scheduled snapshots every 5
minutes to 'refresh' the table at the suscribers. The problem is when
the replicate server replicate table invoice to a subscribe, the
trigger on invoice table will be triggered and update/insert
InvoiceHistory table in the subscribe. Then when the replicate server
replicate table InvoiceHistory, we will get duplicate record in
InvoiceTable, one is from Invoice table trigger and another is from
InvoiceHistory replicate.
If we do not replicate InvoiceHistory table, then those fields that end
user updated can not be sync to subscribes.
Can I disable the trigger on invoice table when replication?
Does anybody there have a better idea how to do something like this?
ThanksCheck for the NOT FOR REPLICATION option. If you put it, trigger will not be
fired for replication.
MC
<rockdale.green@.gmail.com> wrote in message
news:1143418413.367012.182670@.v46g2000cwv.googlegroups.com...
> Hi, all:
> We have 5 databases which contains invoice and invoiceHistory tables.
> We have an update and insert trigger on invoice table to record every
> modification into InvoiceHistory table. The invoiceHistory table is not
> read only, it has some fields that the end user can edit (comments,
> date ...etc). At the same time, we using scheduled snapshots every 5
> minutes to 'refresh' the table at the suscribers. The problem is when
> the replicate server replicate table invoice to a subscribe, the
> trigger on invoice table will be triggered and update/insert
> InvoiceHistory table in the subscribe. Then when the replicate server
> replicate table InvoiceHistory, we will get duplicate record in
> InvoiceTable, one is from Invoice table trigger and another is from
> InvoiceHistory replicate.
>
> If we do not replicate InvoiceHistory table, then those fields that end
> user updated can not be sync to subscribes.
> Can I disable the trigger on invoice table when replication?
> Does anybody there have a better idea how to do something like this?
>
> Thanks
>
Replication and User Defined Trigger
Hi, all:
We have 5 databases which contains invoice and invoiceHistory tables.
We have an update and insert trigger on invoice table to record every
modification into InvoiceHistory table. The invoiceHistory table is not
read only, it has some fields that the end user can edit (comments,
date ...etc). At the same time, we using scheduled snapshots every 5
minutes to 'refresh' the table at the suscribers. The problem is when
the replicate server replicate table invoice to a subscribe, the
trigger on invoice table will be triggered and update/insert
InvoiceHistory table in the subscribe. Then when the replicate server
replicate table InvoiceHistory, we will get duplicate record in
InvoiceTable, one is from Invoice table trigger and another is from
InvoiceHistory replicate.
If we do not replicate InvoiceHistory table, then those fields that end
user updated can not be sync to subscribes.
Can I disable the trigger on invoice table when replication?
Does anybody there have a better idea how to do something like this?
Thanks
Check for the NOT FOR REPLICATION option. If you put it, trigger will not be
fired for replication.
MC
<rockdale.green@.gmail.com> wrote in message
news:1143418413.367012.182670@.v46g2000cwv.googlegr oups.com...
> Hi, all:
> We have 5 databases which contains invoice and invoiceHistory tables.
> We have an update and insert trigger on invoice table to record every
> modification into InvoiceHistory table. The invoiceHistory table is not
> read only, it has some fields that the end user can edit (comments,
> date ...etc). At the same time, we using scheduled snapshots every 5
> minutes to 'refresh' the table at the suscribers. The problem is when
> the replicate server replicate table invoice to a subscribe, the
> trigger on invoice table will be triggered and update/insert
> InvoiceHistory table in the subscribe. Then when the replicate server
> replicate table InvoiceHistory, we will get duplicate record in
> InvoiceTable, one is from Invoice table trigger and another is from
> InvoiceHistory replicate.
>
> If we do not replicate InvoiceHistory table, then those fields that end
> user updated can not be sync to subscribes.
> Can I disable the trigger on invoice table when replication?
> Does anybody there have a better idea how to do something like this?
>
> Thanks
>
We have 5 databases which contains invoice and invoiceHistory tables.
We have an update and insert trigger on invoice table to record every
modification into InvoiceHistory table. The invoiceHistory table is not
read only, it has some fields that the end user can edit (comments,
date ...etc). At the same time, we using scheduled snapshots every 5
minutes to 'refresh' the table at the suscribers. The problem is when
the replicate server replicate table invoice to a subscribe, the
trigger on invoice table will be triggered and update/insert
InvoiceHistory table in the subscribe. Then when the replicate server
replicate table InvoiceHistory, we will get duplicate record in
InvoiceTable, one is from Invoice table trigger and another is from
InvoiceHistory replicate.
If we do not replicate InvoiceHistory table, then those fields that end
user updated can not be sync to subscribes.
Can I disable the trigger on invoice table when replication?
Does anybody there have a better idea how to do something like this?
Thanks
Check for the NOT FOR REPLICATION option. If you put it, trigger will not be
fired for replication.
MC
<rockdale.green@.gmail.com> wrote in message
news:1143418413.367012.182670@.v46g2000cwv.googlegr oups.com...
> Hi, all:
> We have 5 databases which contains invoice and invoiceHistory tables.
> We have an update and insert trigger on invoice table to record every
> modification into InvoiceHistory table. The invoiceHistory table is not
> read only, it has some fields that the end user can edit (comments,
> date ...etc). At the same time, we using scheduled snapshots every 5
> minutes to 'refresh' the table at the suscribers. The problem is when
> the replicate server replicate table invoice to a subscribe, the
> trigger on invoice table will be triggered and update/insert
> InvoiceHistory table in the subscribe. Then when the replicate server
> replicate table InvoiceHistory, we will get duplicate record in
> InvoiceTable, one is from Invoice table trigger and another is from
> InvoiceHistory replicate.
>
> If we do not replicate InvoiceHistory table, then those fields that end
> user updated can not be sync to subscribes.
> Can I disable the trigger on invoice table when replication?
> Does anybody there have a better idea how to do something like this?
>
> Thanks
>
Tuesday, March 20, 2012
Replication and User Defined Trigger
Hi, all:
We have 5 databases which contains invoice and invoiceHistory tables.
We have an update and insert trigger on invoice table to record every
modification into InvoiceHistory table. The invoiceHistory table is not
read only, it has some fields that the end user can edit (comments,
date ...etc). At the same time, we using scheduled snapshots every 5
minutes to 'refresh' the table at the suscribers. The problem is when
the replicate server replicate table invoice to a subscribe, the
trigger on invoice table will be triggered and update/insert
InvoiceHistory table in the subscribe. Then when the replicate server
replicate table InvoiceHistory, we will get duplicate record in
InvoiceTable, one is from Invoice table trigger and another is from
InvoiceHistory replicate.
If we do not replicate InvoiceHistory table, then those fields that end
user updated can not be sync to subscribes.
Can I disable the trigger on invoice table when replication?
Does anybody there have a better idea how to do something like this?
ThanksCheck for the NOT FOR REPLICATION option. If you put it, trigger will not be
fired for replication.
MC
<rockdale.green@.gmail.com> wrote in message
news:1143418413.367012.182670@.v46g2000cwv.googlegroups.com...
> Hi, all:
> We have 5 databases which contains invoice and invoiceHistory tables.
> We have an update and insert trigger on invoice table to record every
> modification into InvoiceHistory table. The invoiceHistory table is not
> read only, it has some fields that the end user can edit (comments,
> date ...etc). At the same time, we using scheduled snapshots every 5
> minutes to 'refresh' the table at the suscribers. The problem is when
> the replicate server replicate table invoice to a subscribe, the
> trigger on invoice table will be triggered and update/insert
> InvoiceHistory table in the subscribe. Then when the replicate server
> replicate table InvoiceHistory, we will get duplicate record in
> InvoiceTable, one is from Invoice table trigger and another is from
> InvoiceHistory replicate.
>
> If we do not replicate InvoiceHistory table, then those fields that end
> user updated can not be sync to subscribes.
> Can I disable the trigger on invoice table when replication?
> Does anybody there have a better idea how to do something like this?
>
> Thanks
>
We have 5 databases which contains invoice and invoiceHistory tables.
We have an update and insert trigger on invoice table to record every
modification into InvoiceHistory table. The invoiceHistory table is not
read only, it has some fields that the end user can edit (comments,
date ...etc). At the same time, we using scheduled snapshots every 5
minutes to 'refresh' the table at the suscribers. The problem is when
the replicate server replicate table invoice to a subscribe, the
trigger on invoice table will be triggered and update/insert
InvoiceHistory table in the subscribe. Then when the replicate server
replicate table InvoiceHistory, we will get duplicate record in
InvoiceTable, one is from Invoice table trigger and another is from
InvoiceHistory replicate.
If we do not replicate InvoiceHistory table, then those fields that end
user updated can not be sync to subscribes.
Can I disable the trigger on invoice table when replication?
Does anybody there have a better idea how to do something like this?
ThanksCheck for the NOT FOR REPLICATION option. If you put it, trigger will not be
fired for replication.
MC
<rockdale.green@.gmail.com> wrote in message
news:1143418413.367012.182670@.v46g2000cwv.googlegroups.com...
> Hi, all:
> We have 5 databases which contains invoice and invoiceHistory tables.
> We have an update and insert trigger on invoice table to record every
> modification into InvoiceHistory table. The invoiceHistory table is not
> read only, it has some fields that the end user can edit (comments,
> date ...etc). At the same time, we using scheduled snapshots every 5
> minutes to 'refresh' the table at the suscribers. The problem is when
> the replicate server replicate table invoice to a subscribe, the
> trigger on invoice table will be triggered and update/insert
> InvoiceHistory table in the subscribe. Then when the replicate server
> replicate table InvoiceHistory, we will get duplicate record in
> InvoiceTable, one is from Invoice table trigger and another is from
> InvoiceHistory replicate.
>
> If we do not replicate InvoiceHistory table, then those fields that end
> user updated can not be sync to subscribes.
> Can I disable the trigger on invoice table when replication?
> Does anybody there have a better idea how to do something like this?
>
> Thanks
>
Replication and triggers
Does anyone know if when applying the initial snapshot for merge replication if it fires the insert or update user written triggers?Does anyone know Yep
if it fires the insert or update user written triggers? No it does'nt|||Since I could not get an answer I went ahead and applied the snapshot. When it had completed there were no records that my triggers would have generated so I guess the answer is NO IT DOES NOT FIRE THE TRIGGERS.
if it fires the insert or update user written triggers? No it does'nt|||Since I could not get an answer I went ahead and applied the snapshot. When it had completed there were no records that my triggers would have generated so I guess the answer is NO IT DOES NOT FIRE THE TRIGGERS.
Monday, March 12, 2012
Replication 2 part update in SQL2005?
SQL2000 used to send a 2 part update using sp_msdel followed by sp_msins instead of just calling sp_msupd. I thought this used to happen on tables with compostie primary keys. Does any know know if this still occurs in SQL2005 and maybe why?
I think I found the answer as deferred updates, or Singleton pairs. See http://support.microsoft.com/kb/238254/en-us
Replication 2 part update in SQL2005?
SQL2000 used to send a 2 part update using sp_msdel followed by sp_msins instead of just calling sp_msupd. I thought this used to happen on tables with compostie primary keys. Does any know know if this still occurs in SQL2005 and maybe why?
I think I found the answer as deferred updates, or Singleton pairs. See http://support.microsoft.com/kb/238254/en-us
Friday, March 9, 2012
Replication - will this work?
I have a system with two SQL 2K servers. The two servers are connected by
dial up 56K lines which will be used to update the system. The requirement
is that the first server S1 database match the second server S2 database on
a daily basis. S1 will be heavily updated but S2 will mostly have few
changes.
I was thinking replication via the SQL server would be the best way to
implement this but was wondering if it was possible.
One of my concerns is that since the two servers are not connected all the
time will they update correctly when they are connected.
I am also concerned about how the system will handle records that are
updated on both system and then merged.
Also can the replication occur while the server is receiving new data?
Any comments, suggestion, or links would be appreciated.
Regards,
John
John,
Merge replication should do what you need, it is designed for occasionally
disconnected sites. Check it in Books Online whether this is what you need.
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com
"John J. Hughes II" <no@.invalid.com> wrote in message
news:ueBIwtHvEHA.1296@.TK2MSFTNGP10.phx.gbl...
> I have a system with two SQL 2K servers. The two servers are connected by
> dial up 56K lines which will be used to update the system. The
requirement
> is that the first server S1 database match the second server S2 database
on
> a daily basis. S1 will be heavily updated but S2 will mostly have few
> changes.
> I was thinking replication via the SQL server would be the best way to
> implement this but was wondering if it was possible.
> One of my concerns is that since the two servers are not connected all the
> time will they update correctly when they are connected.
> I am also concerned about how the system will handle records that are
> updated on both system and then merged.
> Also can the replication occur while the server is receiving new data?
> Any comments, suggestion, or links would be appreciated.
> Regards,
> John
>
|||Hi John,
From your descriptions, I understood that you would like to make
replication between two SQL Servers in Internet via modem. Have I
understood you? Correct me if I was wrong.
Based on my scope, first of all, you must select a way to setup replication
via Internet. Ways for users to connect to replicated data over the
Internet using Microsoft SQL Server 2000 include:
- Using Virtual Private Networks (VPNs), such as those based on the
Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
Windows? 2000 Server operating system, or a third party provider.
- Integrating replication with Microsoft Proxy Server.
- Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
snapshot of data over the Internet.
See Topic "Web-Based Applications" in Books Online for more detailed
information about this and I would perfer using VPN. See the following
documents for how to create VPN on the different OS
How To Install and Configure a Virtual Private Network Server in Windows
Server 2003
http://support.microsoft.com/default...b;en-us;323441
Configure a Win2K VPN
http://msdn.microsoft.com/library/de...us/dnw2kmag00/
html/VPN.asp
How to Install Virtual Private Networking in Windows Me/98
http://support.microsoft.com/default...b;en-us;288779
Secondly, it was not necessary for you to connect to the Internet all the
time. You could schedule the synchronization at the same time per day with
a job, however, you will have to dial-up yourself that time before setup
the replication.
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!
|||The system will not be interfacing with the Internet at all. System 1 will
connect to system 2 using a 56K lease line or ISDN line. The only problem
is the connection is not permanent and must be initiated before update.
Regards,
John
""Michael Cheng [MSFT]"" <v-mingqc@.online.microsoft.com> wrote in message
news:q0rLa$LvEHA.3696@.cpmsftngxa10.phx.gbl...
> Hi John,
> From your descriptions, I understood that you would like to make
> replication between two SQL Servers in Internet via modem. Have I
> understood you? Correct me if I was wrong.
> Based on my scope, first of all, you must select a way to setup
> replication
> via Internet. Ways for users to connect to replicated data over the
> Internet using Microsoft SQL Server 2000 include:
> - Using Virtual Private Networks (VPNs), such as those based on the
> Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
> Windows? 2000 Server operating system, or a third party provider.
> - Integrating replication with Microsoft Proxy Server.
> - Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
> snapshot of data over the Internet.
> See Topic "Web-Based Applications" in Books Online for more detailed
> information about this and I would perfer using VPN. See the following
> documents for how to create VPN on the different OS
> How To Install and Configure a Virtual Private Network Server in Windows
> Server 2003
> http://support.microsoft.com/default...b;en-us;323441
> Configure a Win2K VPN
> http://msdn.microsoft.com/library/de...us/dnw2kmag00/
> html/VPN.asp
> How to Install Virtual Private Networking in Windows Me/98
> http://support.microsoft.com/default...b;en-us;288779
> Secondly, it was not necessary for you to connect to the Internet all the
> time. You could schedule the synchronization at the same time per day with
> a job, however, you will have to dial-up yourself that time before setup
> the replication.
> Thank you for your patience and corperation. If you have any questions or
> concerns, don't hesitate to let me know. We are here to be of assistance!
>
> Sincerely yours,
> Michael Cheng
> Online Partner Support Specialist
> Partner Support Group
> Microsoft Global Technical Support Center
> Get Secure! - http://www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only, many thanks!
>
>
|||Hi John,
Sorry for my misunderstanding.
If so, as MVP Dejan Sarka and I have said, it's OK for replication doing so
when the connection are not permanent. For example, you have scheduled the
run the SQL Agent at 6:00 PM everyday, you will have to dial-up before 6:00
PM everyday and make sure it was connect before SQL Agent doing this.
(Unfortuantely, based on my scope, I am afraid SQL Server do not have the
funcaitonality to dial-up automatically)
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!
|||Thanks for the response.
Regards,
John
dial up 56K lines which will be used to update the system. The requirement
is that the first server S1 database match the second server S2 database on
a daily basis. S1 will be heavily updated but S2 will mostly have few
changes.
I was thinking replication via the SQL server would be the best way to
implement this but was wondering if it was possible.
One of my concerns is that since the two servers are not connected all the
time will they update correctly when they are connected.
I am also concerned about how the system will handle records that are
updated on both system and then merged.
Also can the replication occur while the server is receiving new data?
Any comments, suggestion, or links would be appreciated.
Regards,
John
John,
Merge replication should do what you need, it is designed for occasionally
disconnected sites. Check it in Books Online whether this is what you need.
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com
"John J. Hughes II" <no@.invalid.com> wrote in message
news:ueBIwtHvEHA.1296@.TK2MSFTNGP10.phx.gbl...
> I have a system with two SQL 2K servers. The two servers are connected by
> dial up 56K lines which will be used to update the system. The
requirement
> is that the first server S1 database match the second server S2 database
on
> a daily basis. S1 will be heavily updated but S2 will mostly have few
> changes.
> I was thinking replication via the SQL server would be the best way to
> implement this but was wondering if it was possible.
> One of my concerns is that since the two servers are not connected all the
> time will they update correctly when they are connected.
> I am also concerned about how the system will handle records that are
> updated on both system and then merged.
> Also can the replication occur while the server is receiving new data?
> Any comments, suggestion, or links would be appreciated.
> Regards,
> John
>
|||Hi John,
From your descriptions, I understood that you would like to make
replication between two SQL Servers in Internet via modem. Have I
understood you? Correct me if I was wrong.
Based on my scope, first of all, you must select a way to setup replication
via Internet. Ways for users to connect to replicated data over the
Internet using Microsoft SQL Server 2000 include:
- Using Virtual Private Networks (VPNs), such as those based on the
Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
Windows? 2000 Server operating system, or a third party provider.
- Integrating replication with Microsoft Proxy Server.
- Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
snapshot of data over the Internet.
See Topic "Web-Based Applications" in Books Online for more detailed
information about this and I would perfer using VPN. See the following
documents for how to create VPN on the different OS
How To Install and Configure a Virtual Private Network Server in Windows
Server 2003
http://support.microsoft.com/default...b;en-us;323441
Configure a Win2K VPN
http://msdn.microsoft.com/library/de...us/dnw2kmag00/
html/VPN.asp
How to Install Virtual Private Networking in Windows Me/98
http://support.microsoft.com/default...b;en-us;288779
Secondly, it was not necessary for you to connect to the Internet all the
time. You could schedule the synchronization at the same time per day with
a job, however, you will have to dial-up yourself that time before setup
the replication.
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!
|||The system will not be interfacing with the Internet at all. System 1 will
connect to system 2 using a 56K lease line or ISDN line. The only problem
is the connection is not permanent and must be initiated before update.
Regards,
John
""Michael Cheng [MSFT]"" <v-mingqc@.online.microsoft.com> wrote in message
news:q0rLa$LvEHA.3696@.cpmsftngxa10.phx.gbl...
> Hi John,
> From your descriptions, I understood that you would like to make
> replication between two SQL Servers in Internet via modem. Have I
> understood you? Correct me if I was wrong.
> Based on my scope, first of all, you must select a way to setup
> replication
> via Internet. Ways for users to connect to replicated data over the
> Internet using Microsoft SQL Server 2000 include:
> - Using Virtual Private Networks (VPNs), such as those based on the
> Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
> Windows? 2000 Server operating system, or a third party provider.
> - Integrating replication with Microsoft Proxy Server.
> - Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
> snapshot of data over the Internet.
> See Topic "Web-Based Applications" in Books Online for more detailed
> information about this and I would perfer using VPN. See the following
> documents for how to create VPN on the different OS
> How To Install and Configure a Virtual Private Network Server in Windows
> Server 2003
> http://support.microsoft.com/default...b;en-us;323441
> Configure a Win2K VPN
> http://msdn.microsoft.com/library/de...us/dnw2kmag00/
> html/VPN.asp
> How to Install Virtual Private Networking in Windows Me/98
> http://support.microsoft.com/default...b;en-us;288779
> Secondly, it was not necessary for you to connect to the Internet all the
> time. You could schedule the synchronization at the same time per day with
> a job, however, you will have to dial-up yourself that time before setup
> the replication.
> Thank you for your patience and corperation. If you have any questions or
> concerns, don't hesitate to let me know. We are here to be of assistance!
>
> Sincerely yours,
> Michael Cheng
> Online Partner Support Specialist
> Partner Support Group
> Microsoft Global Technical Support Center
> Get Secure! - http://www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only, many thanks!
>
>
|||Hi John,
Sorry for my misunderstanding.
If so, as MVP Dejan Sarka and I have said, it's OK for replication doing so
when the connection are not permanent. For example, you have scheduled the
run the SQL Agent at 6:00 PM everyday, you will have to dial-up before 6:00
PM everyday and make sure it was connect before SQL Agent doing this.
(Unfortuantely, based on my scope, I am afraid SQL Server do not have the
funcaitonality to dial-up automatically)
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!
|||Thanks for the response.
Regards,
John
Replication - will this work?
I have a system with two SQL 2K servers. The two servers are connected by
dial up 56K lines which will be used to update the system. The requirement
is that the first server S1 database match the second server S2 database on
a daily basis. S1 will be heavily updated but S2 will mostly have few
changes.
I was thinking replication via the SQL server would be the best way to
implement this but was wondering if it was possible.
One of my concerns is that since the two servers are not connected all the
time will they update correctly when they are connected.
I am also concerned about how the system will handle records that are
updated on both system and then merged.
Also can the replication occur while the server is receiving new data?
Any comments, suggestion, or links would be appreciated.
Regards,
JohnJohn,
Merge replication should do what you need, it is designed for occasionally
disconnected sites. Check it in Books Online whether this is what you need.
--
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com
"John J. Hughes II" <no@.invalid.com> wrote in message
news:ueBIwtHvEHA.1296@.TK2MSFTNGP10.phx.gbl...
> I have a system with two SQL 2K servers. The two servers are connected by
> dial up 56K lines which will be used to update the system. The
requirement
> is that the first server S1 database match the second server S2 database
on
> a daily basis. S1 will be heavily updated but S2 will mostly have few
> changes.
> I was thinking replication via the SQL server would be the best way to
> implement this but was wondering if it was possible.
> One of my concerns is that since the two servers are not connected all the
> time will they update correctly when they are connected.
> I am also concerned about how the system will handle records that are
> updated on both system and then merged.
> Also can the replication occur while the server is receiving new data?
> Any comments, suggestion, or links would be appreciated.
> Regards,
> John
>|||Hi John,
From your descriptions, I understood that you would like to make
replication between two SQL Servers in Internet via modem. Have I
understood you? Correct me if I was wrong.
Based on my scope, first of all, you must select a way to setup replication
via Internet. Ways for users to connect to replicated data over the
Internet using Microsoft SQL Server 2000 include:
- Using Virtual Private Networks (VPNs), such as those based on the
Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
Windows? 2000 Server operating system, or a third party provider.
- Integrating replication with Microsoft Proxy Server.
- Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
snapshot of data over the Internet.
See Topic "Web-Based Applications" in Books Online for more detailed
information about this and I would perfer using VPN. See the following
documents for how to create VPN on the different OS
How To Install and Configure a Virtual Private Network Server in Windows
Server 2003
http://support.microsoft.com/default.aspx?scid=kb;en-us;323441
Configure a Win2K VPN
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2kmag00/
html/VPN.asp
How to Install Virtual Private Networking in Windows Me/98
http://support.microsoft.com/default.aspx?scid=kb;en-us;288779
Secondly, it was not necessary for you to connect to the Internet all the
time. You could schedule the synchronization at the same time per day with
a job, however, you will have to dial-up yourself that time before setup
the replication.
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||The system will not be interfacing with the Internet at all. System 1 will
connect to system 2 using a 56K lease line or ISDN line. The only problem
is the connection is not permanent and must be initiated before update.
Regards,
John
""Michael Cheng [MSFT]"" <v-mingqc@.online.microsoft.com> wrote in message
news:q0rLa$LvEHA.3696@.cpmsftngxa10.phx.gbl...
> Hi John,
> From your descriptions, I understood that you would like to make
> replication between two SQL Servers in Internet via modem. Have I
> understood you? Correct me if I was wrong.
> Based on my scope, first of all, you must select a way to setup
> replication
> via Internet. Ways for users to connect to replicated data over the
> Internet using Microsoft SQL Server 2000 include:
> - Using Virtual Private Networks (VPNs), such as those based on the
> Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
> Windows? 2000 Server operating system, or a third party provider.
> - Integrating replication with Microsoft Proxy Server.
> - Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
> snapshot of data over the Internet.
> See Topic "Web-Based Applications" in Books Online for more detailed
> information about this and I would perfer using VPN. See the following
> documents for how to create VPN on the different OS
> How To Install and Configure a Virtual Private Network Server in Windows
> Server 2003
> http://support.microsoft.com/default.aspx?scid=kb;en-us;323441
> Configure a Win2K VPN
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2kmag00/
> html/VPN.asp
> How to Install Virtual Private Networking in Windows Me/98
> http://support.microsoft.com/default.aspx?scid=kb;en-us;288779
> Secondly, it was not necessary for you to connect to the Internet all the
> time. You could schedule the synchronization at the same time per day with
> a job, however, you will have to dial-up yourself that time before setup
> the replication.
> Thank you for your patience and corperation. If you have any questions or
> concerns, don't hesitate to let me know. We are here to be of assistance!
>
> Sincerely yours,
> Michael Cheng
> Online Partner Support Specialist
> Partner Support Group
> Microsoft Global Technical Support Center
> ---
> Get Secure! - http://www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only, many thanks!
>
>|||Hi John,
Sorry for my misunderstanding.
If so, as MVP Dejan Sarka and I have said, it's OK for replication doing so
when the connection are not permanent. For example, you have scheduled the
run the SQL Agent at 6:00 PM everyday, you will have to dial-up before 6:00
PM everyday and make sure it was connect before SQL Agent doing this.
(Unfortuantely, based on my scope, I am afraid SQL Server do not have the
funcaitonality to dial-up automatically)
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||Thanks for the response.
Regards,
John
dial up 56K lines which will be used to update the system. The requirement
is that the first server S1 database match the second server S2 database on
a daily basis. S1 will be heavily updated but S2 will mostly have few
changes.
I was thinking replication via the SQL server would be the best way to
implement this but was wondering if it was possible.
One of my concerns is that since the two servers are not connected all the
time will they update correctly when they are connected.
I am also concerned about how the system will handle records that are
updated on both system and then merged.
Also can the replication occur while the server is receiving new data?
Any comments, suggestion, or links would be appreciated.
Regards,
JohnJohn,
Merge replication should do what you need, it is designed for occasionally
disconnected sites. Check it in Books Online whether this is what you need.
--
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com
"John J. Hughes II" <no@.invalid.com> wrote in message
news:ueBIwtHvEHA.1296@.TK2MSFTNGP10.phx.gbl...
> I have a system with two SQL 2K servers. The two servers are connected by
> dial up 56K lines which will be used to update the system. The
requirement
> is that the first server S1 database match the second server S2 database
on
> a daily basis. S1 will be heavily updated but S2 will mostly have few
> changes.
> I was thinking replication via the SQL server would be the best way to
> implement this but was wondering if it was possible.
> One of my concerns is that since the two servers are not connected all the
> time will they update correctly when they are connected.
> I am also concerned about how the system will handle records that are
> updated on both system and then merged.
> Also can the replication occur while the server is receiving new data?
> Any comments, suggestion, or links would be appreciated.
> Regards,
> John
>|||Hi John,
From your descriptions, I understood that you would like to make
replication between two SQL Servers in Internet via modem. Have I
understood you? Correct me if I was wrong.
Based on my scope, first of all, you must select a way to setup replication
via Internet. Ways for users to connect to replicated data over the
Internet using Microsoft SQL Server 2000 include:
- Using Virtual Private Networks (VPNs), such as those based on the
Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
Windows? 2000 Server operating system, or a third party provider.
- Integrating replication with Microsoft Proxy Server.
- Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
snapshot of data over the Internet.
See Topic "Web-Based Applications" in Books Online for more detailed
information about this and I would perfer using VPN. See the following
documents for how to create VPN on the different OS
How To Install and Configure a Virtual Private Network Server in Windows
Server 2003
http://support.microsoft.com/default.aspx?scid=kb;en-us;323441
Configure a Win2K VPN
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2kmag00/
html/VPN.asp
How to Install Virtual Private Networking in Windows Me/98
http://support.microsoft.com/default.aspx?scid=kb;en-us;288779
Secondly, it was not necessary for you to connect to the Internet all the
time. You could schedule the synchronization at the same time per day with
a job, however, you will have to dial-up yourself that time before setup
the replication.
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||The system will not be interfacing with the Internet at all. System 1 will
connect to system 2 using a 56K lease line or ISDN line. The only problem
is the connection is not permanent and must be initiated before update.
Regards,
John
""Michael Cheng [MSFT]"" <v-mingqc@.online.microsoft.com> wrote in message
news:q0rLa$LvEHA.3696@.cpmsftngxa10.phx.gbl...
> Hi John,
> From your descriptions, I understood that you would like to make
> replication between two SQL Servers in Internet via modem. Have I
> understood you? Correct me if I was wrong.
> Based on my scope, first of all, you must select a way to setup
> replication
> via Internet. Ways for users to connect to replicated data over the
> Internet using Microsoft SQL Server 2000 include:
> - Using Virtual Private Networks (VPNs), such as those based on the
> Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
> Windows? 2000 Server operating system, or a third party provider.
> - Integrating replication with Microsoft Proxy Server.
> - Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
> snapshot of data over the Internet.
> See Topic "Web-Based Applications" in Books Online for more detailed
> information about this and I would perfer using VPN. See the following
> documents for how to create VPN on the different OS
> How To Install and Configure a Virtual Private Network Server in Windows
> Server 2003
> http://support.microsoft.com/default.aspx?scid=kb;en-us;323441
> Configure a Win2K VPN
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw2kmag00/
> html/VPN.asp
> How to Install Virtual Private Networking in Windows Me/98
> http://support.microsoft.com/default.aspx?scid=kb;en-us;288779
> Secondly, it was not necessary for you to connect to the Internet all the
> time. You could schedule the synchronization at the same time per day with
> a job, however, you will have to dial-up yourself that time before setup
> the replication.
> Thank you for your patience and corperation. If you have any questions or
> concerns, don't hesitate to let me know. We are here to be of assistance!
>
> Sincerely yours,
> Michael Cheng
> Online Partner Support Specialist
> Partner Support Group
> Microsoft Global Technical Support Center
> ---
> Get Secure! - http://www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only, many thanks!
>
>|||Hi John,
Sorry for my misunderstanding.
If so, as MVP Dejan Sarka and I have said, it's OK for replication doing so
when the connection are not permanent. For example, you have scheduled the
run the SQL Agent at 6:00 PM everyday, you will have to dial-up before 6:00
PM everyday and make sure it was connect before SQL Agent doing this.
(Unfortuantely, based on my scope, I am afraid SQL Server do not have the
funcaitonality to dial-up automatically)
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||Thanks for the response.
Regards,
John
Replication - will this work?
I have a system with two SQL 2K servers. The two servers are connected by
dial up 56K lines which will be used to update the system. The requirement
is that the first server S1 database match the second server S2 database on
a daily basis. S1 will be heavily updated but S2 will mostly have few
changes.
I was thinking replication via the SQL server would be the best way to
implement this but was wondering if it was possible.
One of my concerns is that since the two servers are not connected all the
time will they update correctly when they are connected.
I am also concerned about how the system will handle records that are
updated on both system and then merged.
Also can the replication occur while the server is receiving new data?
Any comments, suggestion, or links would be appreciated.
Regards,
JohnJohn,
Merge replication should do what you need, it is designed for occasionally
disconnected sites. Check it in Books Online whether this is what you need.
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com
"John J. Hughes II" <no@.invalid.com> wrote in message
news:ueBIwtHvEHA.1296@.TK2MSFTNGP10.phx.gbl...
> I have a system with two SQL 2K servers. The two servers are connected by
> dial up 56K lines which will be used to update the system. The
requirement
> is that the first server S1 database match the second server S2 database
on
> a daily basis. S1 will be heavily updated but S2 will mostly have few
> changes.
> I was thinking replication via the SQL server would be the best way to
> implement this but was wondering if it was possible.
> One of my concerns is that since the two servers are not connected all the
> time will they update correctly when they are connected.
> I am also concerned about how the system will handle records that are
> updated on both system and then merged.
> Also can the replication occur while the server is receiving new data?
> Any comments, suggestion, or links would be appreciated.
> Regards,
> John
>|||Hi John,
From your descriptions, I understood that you would like to make
replication between two SQL Servers in Internet via modem. Have I
understood you? Correct me if I was wrong.
Based on my scope, first of all, you must select a way to setup replication
via Internet. Ways for users to connect to replicated data over the
Internet using Microsoft SQL Server 2000 include:
- Using Virtual Private Networks (VPNs), such as those based on the
Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
Windows? 2000 Server operating system, or a third party provider.
- Integrating replication with Microsoft Proxy Server.
- Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
snapshot of data over the Internet.
See Topic "Web-Based Applications" in Books Online for more detailed
information about this and I would perfer using VPN. See the following
documents for how to create VPN on the different OS
How To Install and Configure a Virtual Private Network Server in Windows
Server 2003
http://support.microsoft.com/defaul...kb;en-us;323441
Configure a Win2K VPN
http://msdn.microsoft.com/library/d...-us/dnw2kmag00/
html/VPN.asp
How to Install Virtual Private Networking in Windows Me/98
http://support.microsoft.com/defaul...kb;en-us;288779
Secondly, it was not necessary for you to connect to the Internet all the
time. You could schedule the synchronization at the same time per day with
a job, however, you will have to dial-up yourself that time before setup
the replication.
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||The system will not be interfacing with the Internet at all. System 1 will
connect to system 2 using a 56K lease line or ISDN line. The only problem
is the connection is not permanent and must be initiated before update.
Regards,
John
""Michael Cheng [MSFT]"" <v-mingqc@.online.microsoft.com> wrote in messag
e
news:q0rLa$LvEHA.3696@.cpmsftngxa10.phx.gbl...
> Hi John,
> From your descriptions, I understood that you would like to make
> replication between two SQL Servers in Internet via modem. Have I
> understood you? Correct me if I was wrong.
> Based on my scope, first of all, you must select a way to setup
> replication
> via Internet. Ways for users to connect to replicated data over the
> Internet using Microsoft SQL Server 2000 include:
> - Using Virtual Private Networks (VPNs), such as those based on the
> Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
> Windows? 2000 Server operating system, or a third party provider.
> - Integrating replication with Microsoft Proxy Server.
> - Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
> snapshot of data over the Internet.
> See Topic "Web-Based Applications" in Books Online for more detailed
> information about this and I would perfer using VPN. See the following
> documents for how to create VPN on the different OS
> How To Install and Configure a Virtual Private Network Server in Windows
> Server 2003
> http://support.microsoft.com/defaul...kb;en-us;323441
> Configure a Win2K VPN
> http://msdn.microsoft.com/library/d...kb;en-us;288779
> Secondly, it was not necessary for you to connect to the Internet all the
> time. You could schedule the synchronization at the same time per day with
> a job, however, you will have to dial-up yourself that time before setup
> the replication.
> Thank you for your patience and corperation. If you have any questions or
> concerns, don't hesitate to let me know. We are here to be of assistance!
>
> Sincerely yours,
> Michael Cheng
> Online Partner Support Specialist
> Partner Support Group
> Microsoft Global Technical Support Center
> ---
> Get Secure! - http://www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only, many thanks!
>
>|||Hi John,
Sorry for my misunderstanding.
If so, as MVP Dejan Sarka and I have said, it's OK for replication doing so
when the connection are not permanent. For example, you have scheduled the
run the SQL Agent at 6:00 PM everyday, you will have to dial-up before 6:00
PM everyday and make sure it was connect before SQL Agent doing this.
(Unfortuantely, based on my scope, I am afraid SQL Server do not have the
funcaitonality to dial-up automatically)
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||Thanks for the response.
Regards,
John
dial up 56K lines which will be used to update the system. The requirement
is that the first server S1 database match the second server S2 database on
a daily basis. S1 will be heavily updated but S2 will mostly have few
changes.
I was thinking replication via the SQL server would be the best way to
implement this but was wondering if it was possible.
One of my concerns is that since the two servers are not connected all the
time will they update correctly when they are connected.
I am also concerned about how the system will handle records that are
updated on both system and then merged.
Also can the replication occur while the server is receiving new data?
Any comments, suggestion, or links would be appreciated.
Regards,
JohnJohn,
Merge replication should do what you need, it is designed for occasionally
disconnected sites. Check it in Books Online whether this is what you need.
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com
"John J. Hughes II" <no@.invalid.com> wrote in message
news:ueBIwtHvEHA.1296@.TK2MSFTNGP10.phx.gbl...
> I have a system with two SQL 2K servers. The two servers are connected by
> dial up 56K lines which will be used to update the system. The
requirement
> is that the first server S1 database match the second server S2 database
on
> a daily basis. S1 will be heavily updated but S2 will mostly have few
> changes.
> I was thinking replication via the SQL server would be the best way to
> implement this but was wondering if it was possible.
> One of my concerns is that since the two servers are not connected all the
> time will they update correctly when they are connected.
> I am also concerned about how the system will handle records that are
> updated on both system and then merged.
> Also can the replication occur while the server is receiving new data?
> Any comments, suggestion, or links would be appreciated.
> Regards,
> John
>|||Hi John,
From your descriptions, I understood that you would like to make
replication between two SQL Servers in Internet via modem. Have I
understood you? Correct me if I was wrong.
Based on my scope, first of all, you must select a way to setup replication
via Internet. Ways for users to connect to replicated data over the
Internet using Microsoft SQL Server 2000 include:
- Using Virtual Private Networks (VPNs), such as those based on the
Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
Windows? 2000 Server operating system, or a third party provider.
- Integrating replication with Microsoft Proxy Server.
- Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
snapshot of data over the Internet.
See Topic "Web-Based Applications" in Books Online for more detailed
information about this and I would perfer using VPN. See the following
documents for how to create VPN on the different OS
How To Install and Configure a Virtual Private Network Server in Windows
Server 2003
http://support.microsoft.com/defaul...kb;en-us;323441
Configure a Win2K VPN
http://msdn.microsoft.com/library/d...-us/dnw2kmag00/
html/VPN.asp
How to Install Virtual Private Networking in Windows Me/98
http://support.microsoft.com/defaul...kb;en-us;288779
Secondly, it was not necessary for you to connect to the Internet all the
time. You could schedule the synchronization at the same time per day with
a job, however, you will have to dial-up yourself that time before setup
the replication.
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||The system will not be interfacing with the Internet at all. System 1 will
connect to system 2 using a 56K lease line or ISDN line. The only problem
is the connection is not permanent and must be initiated before update.
Regards,
John
""Michael Cheng [MSFT]"" <v-mingqc@.online.microsoft.com> wrote in messag
e
news:q0rLa$LvEHA.3696@.cpmsftngxa10.phx.gbl...
> Hi John,
> From your descriptions, I understood that you would like to make
> replication between two SQL Servers in Internet via modem. Have I
> understood you? Correct me if I was wrong.
> Based on my scope, first of all, you must select a way to setup
> replication
> via Internet. Ways for users to connect to replicated data over the
> Internet using Microsoft SQL Server 2000 include:
> - Using Virtual Private Networks (VPNs), such as those based on the
> Microsoft Windows NT? Server version 4.0 operating system, the Microsoft
> Windows? 2000 Server operating system, or a third party provider.
> - Integrating replication with Microsoft Proxy Server.
> - Using TCP/IP and File Transfer Protocol (FTP) to transfer the initial
> snapshot of data over the Internet.
> See Topic "Web-Based Applications" in Books Online for more detailed
> information about this and I would perfer using VPN. See the following
> documents for how to create VPN on the different OS
> How To Install and Configure a Virtual Private Network Server in Windows
> Server 2003
> http://support.microsoft.com/defaul...kb;en-us;323441
> Configure a Win2K VPN
> http://msdn.microsoft.com/library/d...kb;en-us;288779
> Secondly, it was not necessary for you to connect to the Internet all the
> time. You could schedule the synchronization at the same time per day with
> a job, however, you will have to dial-up yourself that time before setup
> the replication.
> Thank you for your patience and corperation. If you have any questions or
> concerns, don't hesitate to let me know. We are here to be of assistance!
>
> Sincerely yours,
> Michael Cheng
> Online Partner Support Specialist
> Partner Support Group
> Microsoft Global Technical Support Center
> ---
> Get Secure! - http://www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only, many thanks!
>
>|||Hi John,
Sorry for my misunderstanding.
If so, as MVP Dejan Sarka and I have said, it's OK for replication doing so
when the connection are not permanent. For example, you have scheduled the
run the SQL Agent at 6:00 PM everyday, you will have to dial-up before 6:00
PM everyday and make sure it was connect before SQL Agent doing this.
(Unfortuantely, based on my scope, I am afraid SQL Server do not have the
funcaitonality to dial-up automatically)
Thank you for your patience and corperation. If you have any questions or
concerns, don't hesitate to let me know. We are here to be of assistance!
Sincerely yours,
Michael Cheng
Online Partner Support Specialist
Partner Support Group
Microsoft Global Technical Support Center
---
Get Secure! - http://www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only, many thanks!|||Thanks for the response.
Regards,
John
Wednesday, March 7, 2012
Replication
I'm trying to update a row in a subscriber, and I get an error like this:
"Another user has modified this table or view content; the row you are trying to modifiy does not longer exists in the database".
Can anybody help me to solve this problem? Thanks...Originally posted by berto00
I'm trying to update a row in a subscriber, and I get an error like this:
"Another user has modified this table or view content; the row you are trying to modifiy does not longer exists in the database".
Can anybody help me to solve this problem? Thanks...
try restarting the snapshot agent again, you have a row that perhaps exists in the subscriber and not in the publisher
regards,
-blackpearl|||Originally posted by blackpearl
try restarting the snapshot agent again, you have a row that perhaps exists in the subscriber and not in the publisher
regards,
-blackpearl
I have checked all rows (they're only 10 rows...) and they're all the same. I try to update the value of a column of this row, but then that error occurs...|||Originally posted by berto00
I have checked all rows (they're only 10 rows...) and they're all the same. I try to update the value of a column of this row, but then that error occurs...
ok
Go to the snapshot agents folder and restart your respective snapshot agent (wait till it ends creating the snapshot), then select the the subscriber in your publications folder and click on "Reinitialize".
regards,
-blackpearl|||Originally posted by blackpearl
ok
Go to the snapshot agents folder and restart your respective snapshot agent (wait till it ends creating the snapshot), then select the the subscriber in your publications folder and click on "Reinitialize".
regards,
-blackpearl
ok, I'll try it out... thanks|||Originally posted by berto00
ok, I'll try it out... thanks
I've tried what you told me, but still the same... I don't know if it's important, but the error message also includes this:
"[Microsoft][ODBC Sql Server driver][Sql Server][OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]
And the two servers (publisher and subscriber) are connected through adsl...
"Another user has modified this table or view content; the row you are trying to modifiy does not longer exists in the database".
Can anybody help me to solve this problem? Thanks...Originally posted by berto00
I'm trying to update a row in a subscriber, and I get an error like this:
"Another user has modified this table or view content; the row you are trying to modifiy does not longer exists in the database".
Can anybody help me to solve this problem? Thanks...
try restarting the snapshot agent again, you have a row that perhaps exists in the subscriber and not in the publisher
regards,
-blackpearl|||Originally posted by blackpearl
try restarting the snapshot agent again, you have a row that perhaps exists in the subscriber and not in the publisher
regards,
-blackpearl
I have checked all rows (they're only 10 rows...) and they're all the same. I try to update the value of a column of this row, but then that error occurs...|||Originally posted by berto00
I have checked all rows (they're only 10 rows...) and they're all the same. I try to update the value of a column of this row, but then that error occurs...
ok
Go to the snapshot agents folder and restart your respective snapshot agent (wait till it ends creating the snapshot), then select the the subscriber in your publications folder and click on "Reinitialize".
regards,
-blackpearl|||Originally posted by blackpearl
ok
Go to the snapshot agents folder and restart your respective snapshot agent (wait till it ends creating the snapshot), then select the the subscriber in your publications folder and click on "Reinitialize".
regards,
-blackpearl
ok, I'll try it out... thanks|||Originally posted by berto00
ok, I'll try it out... thanks
I've tried what you told me, but still the same... I don't know if it's important, but the error message also includes this:
"[Microsoft][ODBC Sql Server driver][Sql Server][OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]
And the two servers (publisher and subscriber) are connected through adsl...
Replication
i know that it's natural that one publication could update three
subscripers the transaction replication do that but i need the inverse
case of that. i have three subscripers and i need any update in each of
them appear in the original database.
can i have a help? thanks for any one helps me.
Hammad,
please take a look at this article:
http://www.replicationanswers.com/Ce...berArticle.asp
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
subscripers the transaction replication do that but i need the inverse
case of that. i have three subscripers and i need any update in each of
them appear in the original database.
can i have a help? thanks for any one helps me.
Hammad,
please take a look at this article:
http://www.replicationanswers.com/Ce...berArticle.asp
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
Labels:
database,
inversecase,
microsoft,
mysql,
natural,
oracle,
publication,
replication,
server,
sql,
threesubscripers,
transaction,
update
Saturday, February 25, 2012
Replication
database replication: if I replicate a database and I update a record on
Server_1 at the sametime I update the same record on Server_2 what would
happen ?
Server_1 at the sametime I update the same record on Server_2 what would
happen ?
Thanks
TomThat answer will depend on what type of replication you have set up. You
haven't said what type of replication you are using. Nor have you said what
role these 2 servers play in your replication environment. More detail
information is needed.
"Tom Gao" <tomgaomail@.optushome.com.au> wrote in message
news:41c013a0$0$1125$afc38c87@.news.optusnet.com.au ...
> database replication: if I replicate a database and I update a record on
> Server_1 at the sametime I update the same record on Server_2 what would
> happen ?
> Thanks
> Tom
Subscribe to:
Posts (Atom)