Converting Stand-alone Application To Network-based(client-server)

A Member? Please Login  
type your username and password to login
Date: July 25, 2008, 10:37 PM
223693 members and 127011 Topics
Latest Member: x_apostle
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Converting Stand-alone Application To Network-based(client-server)
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Converting Stand-alone Application To Network-based(client-server)  (Read 293 views)
Dynast (m)
Converting Stand-alone Application To Network-based(client-server)
« on: January 09, 2008, 04:20 PM »

Need help on how to convert a stand alone database application to network based .
The databese  will be in a central computer say server,and users will enter records and manipulate the aplication from sveral clients.
It shld be able to support concurrency

Hoping to hearing from You
Ayinkus (m)
Re: Converting Stand-alone Application To Network-based(client-server)
« #1 on: January 09, 2008, 09:15 PM »

The data source or reference will change to the location of the server hosting your database. I am making the assumpting that you are use a relational database system i.e. MS Sql, Oracle or MySql?
Your connection manager will manage concurrent users and connection pooling. You will have to watch out for multi-user updates on your database records
Dynast (m)
Re: Converting Stand-alone Application To Network-based(client-server)
« #2 on: January 10, 2008, 12:30 PM »

Supposing the application is developed in VB 6.0
What connection string will be used such that it will allow data from several clients to enter the database and be manipulated concurrently by different users
Ayinkus (m)
Re: Converting Stand-alone Application To Network-based(client-server)
« #3 on: January 10, 2008, 02:38 PM »

Hi Dynast,

In your application you should have a connection object similar to dim cn As New ADODB.connection
cn is your object that set it's properties.
Provider,Security, catalogue and server.

As the application is deployed to each machine, each user's machine will know how to connect to the database server.
Each connection will allow the user to perform the database tasks as defined in your application. It is as simple as that.
If you really want to make things easy and the application will run over a domain, use an alias for the database server which can be resolved via DNS so you do not have to go to each machine if you need to change the location of the database server. i hope this make sense?

Let me know if you need more help

Dynast (m)
Re: Converting Stand-alone Application To Network-based(client-server)
« #4 on: January 11, 2008, 02:05 PM »

Thanks Ayinkus for your assistance
Dynast (m)
Re: Converting Stand-alone Application To Network-based(client-server)
« #5 on: January 14, 2008, 01:58 PM »

Thanks Ayinkus
how do I make use of alias.I'm not quite conversant with that . I ll be glad if u will add more flesh to that
Ayinkus (m)
Re: Converting Stand-alone Application To Network-based(client-server)
« #6 on: January 14, 2008, 10:41 PM »

Hi,
If your application runs in a domain environment, then you should have a DNS server, if not you need to edit your hosts file within the windows\system32 folder.
Here you put
DBServerIP Alias
For example
10.10.10.1    TestDBServer

You then use the server name TestDBServer in your connection string thus aliasing the actual server identity.
I normally have an entry named data that points at the server running my SQL2005 server, means if you get hacked someone won't find your DB server easily.

Let me know exactly what you are trying to do and I am sure I can help you out
Dynast (m)
Re: Converting Stand-alone Application To Network-based(client-server)
« #7 on: January 22, 2008, 03:57 PM »


Quote from: Ayinkus on January 14, 2008, 10:41 PM
Let me know exactly what you are trying to do and I am sure I can help you out

Thanks very kindly Ayinkus
I  have a stand alone software developed in VB and now I want to use it in a network ENVIRONMENT hence i neeed to restructure it so that it will be suitable in network environment to accept data from clients and store in a central database
IG
Re: Converting Stand-alone Application To Network-based(client-server)
« #8 on: January 22, 2008, 05:12 PM »

Like Ayinkus pointed out. All you need to do is adjust the connectionstring of your database connection
within your vb program to specify the machine where the database is located and you're good to go.
But that will work with client/server databases like MSSQL server. If you're using access then I think you'll need
to migrate your database to a mature database system like MSSQL.   
Ghenghis (m)
Re: Converting Stand-alone Application To Network-based(client-server)
« #9 on: February 07, 2008, 06:26 PM »

You'll have to change your queries to support concurrency ,

like SELECT FOR UPDATE ,

or use tricks like optimistic concurrency , where you compare the record to be updated with the record before the update ,  if they're different , then the record has changed etc.

Its not exactly trivial but you'd need to ask yourself what the impact of concurrent users would do to your app, the impact might not really be much ,

have fun  Grin
MisterMan (m)
Re: Converting Stand-alone Application To Network-based(client-server)
« #10 on: February 14, 2008, 01:00 PM »

If you are using something like Access or FoxPro as the database, you can use DNS-less access. I suppose it should work with all kinds of database. However, I have not used it with SQL but it should work. The advantage here is that the computer does the house keeping itself.
 Java And Oracle Which Is Best?  What's Your Favourite Coldfusion Tag  Niit Urgent  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 
Google
 
Web www.nairaland.com
Sections: TV/Movies (2) Music/Radio (2) Celebrities Jobs (2) Career Romance Books Politics Sports Fashion Travel
Health Schooling Religion General(2) Business Webmaster Programming Computers Phones Cars & Trucks

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.