VB.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 306,807 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,659 people online right now. Registration is fast and FREE... Join Now!




Multiple applications updating single database

 

Multiple applications updating single database, Same app, different PCs, database on server

Bort

19 Feb, 2009 - 07:02 AM
Post #1

VBort.NET
Group Icon

Joined: 18 Sep, 2006
Posts: 1,391



Thanked: 27 times
Dream Kudos: 350
My Contributions
I have an application which takes input on a local machine and sends it to a database stored on a server. I'd like to be able to deploy my application over a number of computers (all on the same network), all of them updating the same database (on the network server).

First of all, will this be possible without putting together a completely new application to handle all connections to the database and sorting the entries?

If not, how would I go about doing this?

I have a sneaky suspicion that the concurrency errors from this one are not going to be friendly...

I'm not after all the code or anything, just a point in the right direction smile.gif

Thanks,
Bort

User is offlineProfile CardPM
+Quote Post


modi123_1

RE: Multiple Applications Updating Single Database

19 Feb, 2009 - 08:35 AM
Post #2

Suiter #2
Group Icon

Joined: 12 Jun, 2008
Posts: 1,835



Thanked: 80 times
Dream Kudos: 150
My Contributions
Yes it is entirely possible. If you have the db server set up then your program needs the right connection string to the server and bam-o.

Our apps usually deal with 2k-5k users a day.
User is offlineProfile CardPM
+Quote Post

Bort

RE: Multiple Applications Updating Single Database

19 Feb, 2009 - 08:50 AM
Post #3

VBort.NET
Group Icon

Joined: 18 Sep, 2006
Posts: 1,391



Thanked: 27 times
Dream Kudos: 350
My Contributions
I have a database file stored in shared folders on a server. My program has the correct connection string to connect to it and update it, but won't simply putting my application on multiple PCs will cause concurrency violations?
User is offlineProfile CardPM
+Quote Post

baavgai

RE: Multiple Applications Updating Single Database

19 Feb, 2009 - 09:58 AM
Post #4

Dreaming Coder
Group Icon

Joined: 16 Oct, 2007
Posts: 4,347



Thanked: 410 times
Dream Kudos: 550
Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua, Cheese

My Contributions
QUOTE(Bort @ 19 Feb, 2009 - 10:50 AM) *

I have a database file stored in shared folders on a server....


Sorry, this does not sound like a database...

If the "file" is Access it's time to reconsider your options. If the file is something like one of those MDE thingies Visual Studio embeds, you're probably fine a web app is a single point of entry. If it's just a file you open up on a share then you could be in trouble.

User is offlineProfile CardPM
+Quote Post

modi123_1

RE: Multiple Applications Updating Single Database

19 Feb, 2009 - 11:01 AM
Post #5

Suiter #2
Group Icon

Joined: 12 Jun, 2008
Posts: 1,835



Thanked: 80 times
Dream Kudos: 150
My Contributions
Also I am going to throw this out there - MS SQL express is free and supports a large database.

Baavgai is right.. if this "file" is Access you will have to punt it and get a real DB. MSSQL.. MYSQL... postgre.. something else.

Concurrency issues in what way? as in having twenty people accessing the same piece of data? If that's the case just build a "locking" system that locks that chunk of data from any other user access.
User is offlineProfile CardPM
+Quote Post

Bort

RE: Multiple Applications Updating Single Database

20 Feb, 2009 - 01:39 AM
Post #6

VBort.NET
Group Icon

Joined: 18 Sep, 2006
Posts: 1,391



Thanked: 27 times
Dream Kudos: 350
My Contributions
It is an Access database, although I have no problems with changing that to a SQL database instead. Only reason I used Access is because I know how to use Access and have never created a SQL database before.

Concurrency errors as in having 20 people trying to update the same database at the same time, not accessing data.
User is offlineProfile CardPM
+Quote Post

Bort

RE: Multiple Applications Updating Single Database

24 Feb, 2009 - 06:20 AM
Post #7

VBort.NET
Group Icon

Joined: 18 Sep, 2006
Posts: 1,391



Thanked: 27 times
Dream Kudos: 350
My Contributions
Can anyone provide me with a download link for SQL Server 2008 Express please?

The one from the Microsoft VS 2008 website is corrupt.

Edit:

Never mind. I found a different Microsoft site where the download seems to be working.

This post has been edited by Bort: 24 Feb, 2009 - 06:27 AM
User is offlineProfile CardPM
+Quote Post

DeCompile

RE: Multiple Applications Updating Single Database

24 Feb, 2009 - 05:21 PM
Post #8

D.I.C Head
**

Joined: 20 Jul, 2008
Posts: 249



Thanked: 12 times
My Contributions
Now this is entirely person opinion and determined by the users of your database.

Personally, we use web apps. Only because there has never been a standard hardware configuration across the multitude of departments that use these applications.

With web apps, there is no installation, no dependancy issues. It's just open a web browser and away you go. Works the same for Apple, Linux, FreeBSD (some users never let go) and even Windoze.

That's my 2c.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/20/09 09:47PM

Live VB.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month