PC Review


Reply
Thread Tools Rate Thread

Application needs replication

 
 
John
Guest
Posts: n/a
 
      6th Oct 2007
Hi

We have an MS Access application which runs on the server but some laptop
users need the app to work offline. Our solution has been to use Access
replication which automatically syncs data (both ways) when laptop is
connected to the network. We are looking to rewrite the app to vb.net/sql
server. My question is how does replication work in sql server specially in
context of a vb.net front end i.e. what sort of coding/configuration we are
we looking at?

Thanks

Regards


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TW9oaXQgSy4gR3VwdGE=?=
Guest
Posts: n/a
 
      6th Oct 2007
Well since you will have disconnected users; you will need to have a local
instance of the SQL Server installed on the computer. Then you can SQL
Server 2005 Merge Replication Topology to do what yaa needed. Read up on it
at ..
http://technet.microsoft.com/en-us/s.../bb331775.aspx

Thanks!
--
Mohit K. Gupta
B.Sc. CS, Minor Japanese
MCTS: SQL Server 2005


"John" wrote:

> Hi
>
> We have an MS Access application which runs on the server but some laptop
> users need the app to work offline. Our solution has been to use Access
> replication which automatically syncs data (both ways) when laptop is
> connected to the network. We are looking to rewrite the app to vb.net/sql
> server. My question is how does replication work in sql server specially in
> context of a vb.net front end i.e. what sort of coding/configuration we are
> we looking at?
>
> Thanks
>
> Regards
>
>
>

 
Reply With Quote
 
John
Guest
Posts: n/a
 
      7th Oct 2007
Am I right to believe I need to code as if my app is connected to the same
single sql server and various sql server installs would automatically take
care of the sync between themselves without intervention by app when laptops
are connected to the network?

Thanks

Regards

"Mohit K. Gupta" <(E-Mail Removed)> wrote in message
news4FD10E6-2DF6-486A-B6F9-(E-Mail Removed)...
> Well since you will have disconnected users; you will need to have a local
> instance of the SQL Server installed on the computer. Then you can SQL
> Server 2005 Merge Replication Topology to do what yaa needed. Read up on
> it
> at ..
> http://technet.microsoft.com/en-us/s.../bb331775.aspx
>
> Thanks!
> --
> Mohit K. Gupta
> B.Sc. CS, Minor Japanese
> MCTS: SQL Server 2005
>
>
> "John" wrote:
>
>> Hi
>>
>> We have an MS Access application which runs on the server but some laptop
>> users need the app to work offline. Our solution has been to use Access
>> replication which automatically syncs data (both ways) when laptop is
>> connected to the network. We are looking to rewrite the app to vb.net/sql
>> server. My question is how does replication work in sql server specially
>> in
>> context of a vb.net front end i.e. what sort of coding/configuration we
>> are
>> we looking at?
>>
>> Thanks
>>
>> Regards
>>
>>
>>




 
Reply With Quote
 
=?Utf-8?B?TW9oaXQgSy4gR3VwdGE=?=
Guest
Posts: n/a
 
      7th Oct 2007
In a sense yes, but actually no. What I mean is, since you will have a
local install of SQL Server on each laptop; you can code the application to
connect to localhost and no coding required for developer for connecting
parts. But in fact; these are all different instances of SQL Server on
different computer, everyone will have different names.

I haven't coded for replication enviornment, but few challanges that face
you developers is handling merge conflicts. Three possible cases can happen:

1) Record is updated, but no longer exists.
2) Insert a record; and causes a duplicate primary key.
3) Updating same records in two locations, both valid but are in conflict.

Replication is usually timed event; so onces the server is on the network,
the local server will talk to the distributor and the publitioning database
to update information as needed. I hope this gives you some ideas. Thanks!

--
Mohit K. Gupta
B.Sc. CS, Minor Japanese
MCTS: SQL Server 2005


"John" wrote:

> Am I right to believe I need to code as if my app is connected to the same
> single sql server and various sql server installs would automatically take
> care of the sync between themselves without intervention by app when laptops
> are connected to the network?
>
> Thanks
>
> Regards
>
> "Mohit K. Gupta" <(E-Mail Removed)> wrote in message
> news4FD10E6-2DF6-486A-B6F9-(E-Mail Removed)...
> > Well since you will have disconnected users; you will need to have a local
> > instance of the SQL Server installed on the computer. Then you can SQL
> > Server 2005 Merge Replication Topology to do what yaa needed. Read up on
> > it
> > at ..
> > http://technet.microsoft.com/en-us/s.../bb331775.aspx
> >
> > Thanks!
> > --
> > Mohit K. Gupta
> > B.Sc. CS, Minor Japanese
> > MCTS: SQL Server 2005
> >
> >
> > "John" wrote:
> >
> >> Hi
> >>
> >> We have an MS Access application which runs on the server but some laptop
> >> users need the app to work offline. Our solution has been to use Access
> >> replication which automatically syncs data (both ways) when laptop is
> >> connected to the network. We are looking to rewrite the app to vb.net/sql
> >> server. My question is how does replication work in sql server specially
> >> in
> >> context of a vb.net front end i.e. what sort of coding/configuration we
> >> are
> >> we looking at?
> >>
> >> Thanks
> >>
> >> Regards
> >>
> >>
> >>

>
>
>
>

 
Reply With Quote
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      7th Oct 2007
John,

You have at least two possiblilties, use a replication of the SQL server
using by instance SQL Client, or make your application in a way that it uses
DataSets from the needed information.

The latter is very easy to do and the way I would go in your situation.

Cor

 
Reply With Quote
 
William Vaughn
Guest
Posts: n/a
 
      7th Oct 2007
And you don't need SQL Server installed on the client(s). Another
alternative is SQL Server Compact Edition on the clients. It can also act as
a Subscriber to a SQL Server Publisher. Note that a SQL Server Publisher
must be Workgroup or better--SQL Express does not support this
functionality. In addition, you might consider using the new ADO.NET 3.5
Sync Services due out with Orcas (before the end of the year). In this case
you don't need SQL Server to act as a Publisher.

I discuss most of these options in my Ebook on SQL CE.

hth

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> We have an MS Access application which runs on the server but some laptop
> users need the app to work offline. Our solution has been to use Access
> replication which automatically syncs data (both ways) when laptop is
> connected to the network. We are looking to rewrite the app to vb.net/sql
> server. My question is how does replication work in sql server specially
> in context of a vb.net front end i.e. what sort of coding/configuration we
> are we looking at?
>
> Thanks
>
> Regards
>


 
Reply With Quote
 
John
Guest
Posts: n/a
 
      8th Oct 2007
Hi Cor

Thanks. How does one keep data persistent on client side when using
datasets, bearing in mind that clients (laptops) will be disconnected from
the network/sql server often but would need access to sql server data
offline? If you can point to some reading that would be great.

Many Thanks

Regards

"Cor Ligthert[MVP]" <(E-Mail Removed)> wrote in message
news:14F13D20-64C8-46CB-BEF1-(E-Mail Removed)...
> John,
>
> You have at least two possiblilties, use a replication of the SQL server
> using by instance SQL Client, or make your application in a way that it
> uses DataSets from the needed information.
>
> The latter is very easy to do and the way I would go in your situation.
>
> Cor
>



 
Reply With Quote
 
Jim Rand
Guest
Posts: n/a
 
      8th Oct 2007
Take a look at Sybase SQL Anywhere. It's replication capabilities are truly
amazing.

"John" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> We have an MS Access application which runs on the server but some laptop
> users need the app to work offline. Our solution has been to use Access
> replication which automatically syncs data (both ways) when laptop is
> connected to the network. We are looking to rewrite the app to vb.net/sql
> server. My question is how does replication work in sql server specially
> in context of a vb.net front end i.e. what sort of coding/configuration we
> are we looking at?
>
> Thanks
>
> Regards
>



 
Reply With Quote
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      8th Oct 2007
John,

The nature from a dataset is to work ofline, it is build for that.

When you do an update, there is looked if there has been a change (this is
called optimistic concurrency). The way as the data is organised makes that
the chanch for that is low or high.

By instance as you are adding and subtrackting values from tablerows,
instead of adding mutation rows, then you can probably forget it.

Cor

 
Reply With Quote
 
William Vaughn
Guest
Posts: n/a
 
      8th Oct 2007
Ah, I expect he means you can serialize the DataTable(s) to an XML file or
somesuch.
Again, the SQL Server Compact Edition (which supports several kinds of
replication) is a better option.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

"Cor Ligthert[MVP]" <(E-Mail Removed)> wrote in message
news:522F9B5D-D648-4D7B-99F1-(E-Mail Removed)...
> John,
>
> The nature from a dataset is to work ofline, it is build for that.
>
> When you do an update, there is looked if there has been a change (this is
> called optimistic concurrency). The way as the data is organised makes
> that the chanch for that is low or high.
>
> By instance as you are adding and subtrackting values from tablerows,
> instead of adding mutation rows, then you can probably forget it.
>
> Cor


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcut and application replication =?Utf-8?B?RGlsbG9u?= Windows XP General 1 3rd Nov 2007 05:38 PM
Application needs replication John Microsoft VB .NET 13 10th Oct 2007 11:09 PM
The File Replication Service is having trouble enabling replication Skips Microsoft Windows 2000 Advanced Server 0 14th Sep 2004 04:29 AM
Application crashes after replication =?Utf-8?B?TWFuYXN3aQ==?= Microsoft Access 0 5th May 2004 07:11 AM
Re: Merge Replication/SQL Server CE/Smart Device Application/Pocket PC Error Brad Syputa - MS Microsoft Dot NET Compact Framework 3 8th Sep 2003 10:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:03 PM.