Click here to Skip to main content
15,905,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am having problem to insert data into db from two or more systems? please any body help me how can i do this?
Posted
Updated 24-Jan-15 21:49pm
v2
Comments
Zoltán Zörgő 25-Jan-15 2:49am    
First of all: which DBMS are you using? - as embedded ones (like sqlite) are not designed for multiclient usage
Member 11396409 25-Jan-15 3:36am    
I am using Oracle.
Kornfeld Eliyahu Peter 25-Jan-15 2:49am    
What problem?
Member 11396409 25-Jan-15 3:34am    
i have insert data into db from different persons in my group
Kornfeld Eliyahu Peter 25-Jan-15 3:50am    
Oracle is build for multi-user, so probably there is a problem with your code...
You should share with us the exact problem (error if any) and the code around which the problem happening...

1 solution

If you are trying to update a database from two sources (even if it is not simultaneous) you need to look at using a server based database system - which means SQL server or MySql. If you are using one of those, then it should not be a problem, unless you are doing something rather odd.

If you are using a SQL type database such as SQLCE, SQLite, or Access directly, then trying to do anything with more than one user is a very bad idea: it will cause loads of problems.

So your problem is either likely to be that you are using a single user database - in which case change to a server based system - or that the problem is unrelated to multiple users but in your code directly instead, and it only shows up in production. The most obvious of these is concatenating strings to form an SQL statement, which leave you open to SQL Injection, as well as giving problems with "real world" data that don't show up in development.

Whatever, we would need the error messages and related info to have any chance of helping you further.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900