473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Multiple computer update philosophy

Hi All

I have several POS programs (Windows forms VS 2005)

Some customers have multiple copies of the programs, all networked to the 1
SQL Server 2005 Database which resides on 1 of the computers

The programs do auto updating from my website, where they download any new
updates and the update program runs on the next restart of the computer

Problem
If computer 1 (with Sql server) gets updated and computer 2 hasn't updated
yet, then if any Database table or field changes have been made in the
update then computer 2 may generate errors when connecting to SQL server if
it is getting data from any table where the Table field names etc may have
changed

If computer 2 (without Sql server) gets updated and computer 1 hasn't
updated yet, then if any Database table or field changes have been made in
the update, then computer 2 will generate errors when connecting to SQL
server as it will try to reference database tables and fields which may not
exist yet

What is the recommended strategy for synchronising program updates in multi
user environments?

Regards
Steve

Jan 24 '08 #1
2 1346
"Steve" <ga*****@nospam.nospamwrote in
news:OW**************@TK2MSFTNGP04.phx.gbl:
Problem
If computer 1 (with Sql server) gets updated and computer 2 hasn't
updated yet, then if any Database table or field changes have been
made in the update then computer 2 may generate errors when connecting
to SQL server if it is getting data from any table where the Table
field names etc may have changed
For this sort of application, it's a bad idea to connect directly to SQL
server. You should implement some sort of data access layer and business
logic layer which is somewhat loosely coupled. A web service is perfect
for this... the web service could accept a POS request object, if
certain fields are missing, the web service can return with a graceful
exception for the client to swollow.
What is the recommended strategy for synchronising program updates in
multi user environments?
Definately front the database with a webservice or similar facade. It'll
provider greater security than directly connecting to the database and
allow you to run your clients across the internet.

Use a deployment tool such as ClickOnce to do automatic updates.
However, my experience with ClickOnce hasn't been exactly positive, but
others in this group seem to like it.

--
sp**********@rogers.com (Do not e-mail)
Jan 24 '08 #2
Steve wrote:
Hi All

I have several POS programs (Windows forms VS 2005)

Some customers have multiple copies of the programs, all networked to the 1
SQL Server 2005 Database which resides on 1 of the computers

The programs do auto updating from my website, where they download any new
updates and the update program runs on the next restart of the computer
Write a small routine which checks for updates when your program starts,
before any attempt is made to access data. If it finds an update,
advise the User (via a pop-up or whatever) then commence the download of
the update. At the end of the update, re-start the application.

Problem
If computer 1 (with Sql server) gets updated and computer 2 hasn't updated
yet, then if any Database table or field changes have been made in the
update then computer 2 may generate errors when connecting to SQL server if
it is getting data from any table where the Table field names etc may have
changed
As I "Roll-my-own" databases and don't rely on slow interfaces to such
things as SQL and alike, I incorporate a byte-value at the beginning of
every database which contains a Version Number. You could probably
emulate this by having a single file which every computer reads, before
connecting to your SQL database, and if the value in this file is
greater than a constant value set in the program then it advises the
User that their program is an "old" version and initiates an Update
routine or whatever. If the value in the file is lower, then the
program updates the value to indicate a newer program version.

Works for me!

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
Jan 24 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sergio | last post by:
Hi everybody, I have the following scenario. Several computers with shared disk in a LAN. Each of these computer has a MySQL server that serves several databases. I have several clients that...
24
by: Xah Lee | last post by:
What is Expresiveness in a Computer Language 20050207, Xah Lee. In languages human or computer, there's a notion of expressiveness. English for example, is very expressive in manifestation,...
3
by: Chris Baker | last post by:
This is a problem I have been troubleshooting for about 4-6 months. I have an e-mail form on a client's public website that is mis-behaving. It is written in ASP and uses a CDO.Message object. ...
23
by: Xah Lee | last post by:
The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee, 2006-03-15 Let me summarize: The LISP notation, is a functional notation, and is not a...
22
by: Xah Lee | last post by:
The Nature of the “Unix Philosophy” Xah Lee, 2006-05 In the computing industry, especially among unix community, we often hear that there's a “Unix Philosophy”. In this essay, i...
0
by: kirby.urner | last post by:
Cyber-curricula have a leveling aspect, as kids nearer Katrina's epicenter tune in and bliss out on 'Warriors of the Net' (why wait for stupid big dummy textbooks to catch up?). They feel more...
6
by: GregG | last post by:
Greetings, I've inherited a project which requires the use of multiple Access databases, each containing a dozen or so tables each. I need to perform queries which included relations and results...
10
by: chimambo | last post by:
Hi All, I have a little problem. I am retrieving records from a table and I want to update the records using checkboxes. I am able to display the database record quite alright and I have created...
2
by: thetaamommy | last post by:
Hi All : CREATE TABLE TABLEA(Person Varchar(20), Country Varchar(20), Subject Varchar(20), Type Char(1)) INSERT INTO TABLEA VALUES ('Einstein', 'Germany', 'Physics', 'P') INSERT INTO TABLEA...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.