473,224 Members | 1,405 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,224 software developers and data experts.

Network programming question

Hi,

I am writing a client / server application for one of my University
projects and I would like some guidance reguarding the transfer of
data from the client to the server.

I have two methods that I can use and these are the use of Strings or
Object arrays, of custom objects. Now I can use the client to turn
all the objects into strings that insert data into the MySQL databases
that the application is using. Or pass object arrays to the server
that then turns these objects into Strings to place the information
into the database.

Which approach would be the most 'progressional' way of transferring
the data and building the strings.
1. Client side generating the SQL statements then pass to the server?
2. Client passes Object arrays to the server, which generates the SQL
statements?

Thanks in advance.

Grant Collins
Jul 17 '05 #1
1 1496
Grant Collins <gc*********@yahoo.com> wrote in message news:<o5********************************@4ax.com>. ..
Hi,

I am writing a client / server application for one of my University
projects and I would like some guidance reguarding the transfer of
data from the client to the server.

I have two methods that I can use and these are the use of Strings or
Object arrays, of custom objects. Now I can use the client to turn
all the objects into strings that insert data into the MySQL databases
that the application is using. Or pass object arrays to the server
that then turns these objects into Strings to place the information
into the database.

Which approach would be the most 'progressional' way of transferring
the data and building the strings.
1. Client side generating the SQL statements then pass to the server?
2. Client passes Object arrays to the server, which generates the SQL
statements?

Thanks in advance.

Grant Collins

Rule of thumb whenever designing an interface: The caller should know
as little as possible about the callee. This keeps the data abstract
from implementation.

If the client generated SQL statements for the server, what would
happen if you wanted to change the table structure? ...You would have
to rewrite the client--and that's just a waste of time.

---
Jared Dykstra
http://www.bork.org/~jared
Jul 17 '05 #2

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

Similar topics

8
by: Alex Ang | last post by:
I have written the following VBScript program. It is stored into a file "map_drive.vbs". It successfully mapped to a network drive \\server1\data. Dim WshNetwork Set WshNetwork =...
1
by: mch2k2 | last post by:
Hello All I have just started working on Pyhton. I need urgent help regarding Python Network Programming. I want the elctronic version of the Book: Foundations of Python Network programming by...
3
by: Jay | last post by:
Hi, I implemeneted an FTP client and server long time back using Java. I found sockets porgramming in java quite useful and easy to handle. I now wanted to implement a similar program using C++....
6
by: John Walton | last post by:
Hello, everyone. I just began school, and they already assigned us science fair. Since I'm in 8th grade, I get to do demonstrations for our projects. I'm probably going to demonstrate Python's...
29
by: Tola | last post by:
In my case of study, my teacher gave me a project, after I analysed the problem I found that I had to used open the file on the other machine? Please help? Thank you in advance. Tola CHROUK
6
by: Eric | last post by:
Does anyone know of any GOOD network programming book(s) that are C# based, as well as any online tutorials and forums on network programming? Thanks
1
by: mpltkvx | last post by:
Hello, This is a question regarding MS-Access programming. 1. Network environment: I got a room with 50 people answering the phone and logging the topics of the incoming calls. Each has a PC,...
9
by: Mex | last post by:
Hi, I'm looking for a good book for beginners about Network Programming. Besides Stevens' book, I would like something specific for C++ language. Any suggestions? Thanks in advantage, Massimo
7
by: Antoninus Twink | last post by:
On 14 Apr 2008 at 7:36, InuY4sha wrote: Thanks - I'm glad it was helpful. As you've discovered, some of the regular posters here believe strongly that the limits of topicality in this group...
1
by: Ryan Liu | last post by:
Hi, I have a 100 clients/ one server application, use ugly one thread pre client approach. And both side user sync I/O. I frequently see the error on server side(client side code is same, but...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.