dbTalk Databases Forums  

Replication mechanism

microsoft.public.sqlserver.replication microsoft.public.sqlserver.replication


Discuss Replication mechanism in the microsoft.public.sqlserver.replication forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
pat
 
Posts: n/a

Default Replication mechanism - 11-24-2004 , 04:49 AM






Hello,

My situation is as follows:

I use Replication in my Mobile Application and when the PocketPc is
connected via USB the replication works fine. But when I tried to synchonize
the data via WLAN it does not work. My quoted url in my code looks as follows:

oRpl.InternetUrl = "http://IP-Adress/HelpDesk/sscesa20.dll"; //I also tried
it to replace the IP-Address with the machineName of my Desktop but it does
also not work.

I also tried to type in this address in my PocketPc when the WLAN is
activated but it occurs always an error that this page could not be loaded.

Does anybody know what else could be go wrong??

thx

patrick

Reply With Quote
  #2  
Old   
Hilary Cotter
 
Posts: n/a

Default Re: Replication mechanism - 11-24-2004 , 11:36 AM






what is the error message you are getting?

Also what happens when you use IE to connect to this url from your PocketPC?

You should get a message saying SQL Server CE agent or something like that.

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

"pat" <pat (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,

My situation is as follows:

I use Replication in my Mobile Application and when the PocketPc is
connected via USB the replication works fine. But when I tried to
synchonize
the data via WLAN it does not work. My quoted url in my code looks as
follows:

oRpl.InternetUrl = "http://IP-Adress/HelpDesk/sscesa20.dll"; //I also
tried
it to replace the IP-Address with the machineName of my Desktop but it
does
also not work.

I also tried to type in this address in my PocketPc when the WLAN is
activated but it occurs always an error that this page could not be
loaded.

Does anybody know what else could be go wrong??

thx

patrick



Reply With Quote
  #3  
Old   
pat
 
Posts: n/a

Default Re: Replication mechanism - 11-24-2004 , 12:07 PM





That's the strange thing no error message occurs. When it is possible to
call this url "http://IP-Adress/HelpDesk/sscesa20.dll"; with my PocketPc and
the SQL Server CE Agent message appears, does then the replication must work?

patrick

Reply With Quote
  #4  
Old   
Hilary Cotter
 
Posts: n/a

Default Re: Replication mechanism - 11-25-2004 , 07:25 AM



Not necessarily, all it means is that your Pocket PC can connect to the web
server and the virtual directory. I think it also means that your web server
security is set up correctly. Now check the underlying security of your
snapshot folder. Does this reflect read access for the anonymous account
(IUSER_MachineName, or whatever account you are authenticating with)?

Then you should run profiler to determine how far into the replication
process your pull is going. This will help to trouble shoot further.

What would be really helpful is if you could post the error message your
program is raising.


--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"pat" <pat (AT) discussions (DOT) microsoft.com> wrote

Quote:

That's the strange thing no error message occurs. When it is possible
to
call this url "http://IP-Adress/HelpDesk/sscesa20.dll"; with my PocketPc
and
the SQL Server CE Agent message appears, does then the replication must
work?

patrick



Reply With Quote
  #5  
Old   
Paul Ibison
 
Posts: n/a

Default Re: Replication mechanism - 04-14-2005 , 06:06 AM



Robert,
the 'SQL Server CE documentation' has a good set of descriptions and BOL
will explain standard replication. Is there something specific you have in
mind?
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com/default.asp
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)



Reply With Quote
  #6  
Old   
Hilary Cotter
 
Posts: n/a

Default Re: Replication mechanism - 04-14-2005 , 06:32 AM



With merger replication each row has a tracking column called a rowguid
column. Each row has a different value for this rowguid column, but
globally tables in the publisher and all subcribers which contain this
row will have the same value for this guid. This enables the merge
replication process to track changes to this row. This of it as a
Social Security Number, or Social Insurance Number (not sure what the
non American, non Canadian equivalents are).

Each table which is part of a merge publication has triggers of it, so
if one of the rows is modified tracking information is written to
tracking tables.

When the merge agent runs (run by SQL Server Agent) it consults these
tracking tables to determine what has changed since the last time it
has run. It has a counter called a generation which increments each
time the merge agent runs. It then gets a list of the rows which has
changed since the last time it ran and brings them to the publisher in
batches.

When the list of rows arrives at the publisher the publisher compares
its list with the list of changes it has and figures out what goes
where. If changes have to be made on the subsciber it fires procs there
to make these changes, if changes have to be made locally it uses sql
statements. If it detects that the same rows have changed on both the
subscriber and publisher it figures out who wins by using the conflict
resolution policy and logs the conflict info to conflict tracking
tables.

It then gets the next batch.

SQL CE does much the same thing - only it is done programmatically.


--
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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.