Results 1 to 4 of 4

Thread: Contact management system

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2014
    Posts
    13

    Question Contact management system

    I'm currently creating a contact manager program that allows me to enter information such as a person's name, address, numbers etc. That part of the program is relatively easy, but here's the thing; I want to be able to access that information from multiple computers in the same network with the program installed. How exactly should I go about achieving this? If anyone could point me in the right direction, that would be great.
    Last edited by albra; Apr 30th, 2014 at 04:47 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Contact management system

    You would simply put the database on a server on the network. Your application doesn't need to change because of that, in theory at least. You simply need to change your connection string to refer to the appropriate database on the server rather then the local machine.

    One thing that you will need to consider is what happens when multiple users try to work with the same data. This can be ignored in a single-user system but must be considered in multi-user systems. For example, let's say that user A retrieves a record to edit it and then user B retrieves the same record. User B modifies column B and saves the change. If user A now modifies column A and tries to save, they will be saving the original value for column B back over user B's change. What do you do? ADO.NET will detect optimistic concurrency violation and alert you. Generally, you inform your user and ask them what to do. Usually you would retrieve the data again and merge it into what they have and then try saving again.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Contact management system

    In a nutshell, the most realistic scenario is you would run a database that is on the network, like SQL Express for example, and have each machine on the network connect to that.

  4. #4
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Contact management system

    but here's the thing; I want to be able to access that information from multiple computers in the same network with the program installed. How exactly should I go about achieving this? If anyone could point me in the right direction, that would be great.
    Do familiarize with some server configuration such as protocols and ports. This is helpful in setting up SQL Server on a network environment.

    Server Network Configuration
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width