Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: DataRelation Error Pin
sidbaruah28-Jun-07 21:01
sidbaruah28-Jun-07 21:01 
GeneralRe: DataRelation Error Pin
stormcandi29-Jun-07 4:25
stormcandi29-Jun-07 4:25 
Questionapplication which is using/listening the particular port Pin
jfna28-Jun-07 6:56
jfna28-Jun-07 6:56 
QuestionHow to create Bitmapped Context Menu in Windows Explorer Pin
ramesh_nrk28-Jun-07 6:30
ramesh_nrk28-Jun-07 6:30 
AnswerRe: How to create Bitmapped Context Menu in Windows Explorer Pin
Mark Greenwood28-Jun-07 7:42
Mark Greenwood28-Jun-07 7:42 
GeneralRe: How to create Bitmapped Context Menu in Windows Explorer Pin
ramesh_nrk28-Jun-07 20:13
ramesh_nrk28-Jun-07 20:13 
QuestionShould I use objects or XML Pin
oceanexplorer28-Jun-07 6:24
oceanexplorer28-Jun-07 6:24 
AnswerRe: Should I use objects or XML Pin
Mark Greenwood28-Jun-07 7:59
Mark Greenwood28-Jun-07 7:59 
Hmmmm,

Interesting issue. I know we have had similiar issues in the past =

Can I ask how the clients get the update file in the first place ? Is it from some Web Service or do they just download it etc?
I'm also presuming that the Actual application itself which opens this XML file will know that it is possible that it will run SQL on potentially multiple different databases (i.e. ones with different schemas and potentially different versions).

If that is the case then why not actaully send down a ZIP file or Cabinet file with several XML files. One primary XML file with essentially a manifest set of nodes - each one referencing one of the other XML files in the zip/cab, seperated by Version/Schema.

For example the primary XML file might look something like this...


<manifest>
<file version="SQL2000" schema="XXXX" filename="Xmlfile1.xml" />
<file version="SQL2000" schema="YYYY" filename="Xmlfile2.xml" />
<file version="SQL2000" schema="ZZZZ" filename="Xmlfile3.xml" />
<file version="SQL2005" schema="XXXX" filename="Xmlfile4.xml" />
</manifest>


It would then be up to the app itself to work out which version of client database and which schema (or whatever criteria you need) and then check this against the manifest XML file and then load in the relevant SQL xml file and then run the SQL contained within it.

Whilst it may seem inefficient to ship all the files to every client, once it's zipped or compiled into a cabinet file the actual file will be pretty small and you also enjoy the benefit of keeping the update logic seperate for each schema/database type.

Mark
GeneralRe: Should I use objects or XML Pin
oceanexplorer28-Jun-07 23:00
oceanexplorer28-Jun-07 23:00 
QuestionHow to manipulate the displaying of the "From" email address Pin
JohnTheDuke28-Jun-07 6:18
JohnTheDuke28-Jun-07 6:18 
AnswerRe: How to manipulate the displaying of the "From" email address Pin
Muhammad Qasim Pasta28-Jun-07 9:46
Muhammad Qasim Pasta28-Jun-07 9:46 
GeneralRe: How to manipulate the displaying of the "From" email address Pin
JohnTheDuke28-Jun-07 10:03
JohnTheDuke28-Jun-07 10:03 
QuestionAllocConsole and Console Pin
CiNN28-Jun-07 5:57
CiNN28-Jun-07 5:57 
AnswerRe: AllocConsole and Console Pin
led mike28-Jun-07 6:26
led mike28-Jun-07 6:26 
GeneralRe: AllocConsole and Console Pin
CiNN28-Jun-07 6:31
CiNN28-Jun-07 6:31 
Questionicon Pin
HexaDeveloper28-Jun-07 5:55
HexaDeveloper28-Jun-07 5:55 
AnswerRe: icon Pin
Luc Pattyn28-Jun-07 6:05
sitebuilderLuc Pattyn28-Jun-07 6:05 
AnswerRe: icon Pin
Giorgi Dalakishvili28-Jun-07 6:14
mentorGiorgi Dalakishvili28-Jun-07 6:14 
QuestionThroughput/Design Problem Pin
tobriain28-Jun-07 5:05
tobriain28-Jun-07 5:05 
AnswerRe: Throughput/Design Problem Pin
Pete O'Hanlon28-Jun-07 5:11
mvePete O'Hanlon28-Jun-07 5:11 
AnswerRe: Throughput/Design Problem Pin
led mike28-Jun-07 5:14
led mike28-Jun-07 5:14 
GeneralRe: Throughput/Design Problem Pin
tobriain28-Jun-07 5:37
tobriain28-Jun-07 5:37 
GeneralRe: Throughput/Design Problem Pin
led mike28-Jun-07 6:25
led mike28-Jun-07 6:25 
GeneralRe: Throughput/Design Problem Pin
tobriain28-Jun-07 6:41
tobriain28-Jun-07 6:41 
GeneralRe: Throughput/Design Problem Pin
pbraun28-Jun-07 11:26
pbraun28-Jun-07 11:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.