How make concurrent connection to msaccess db in C#

I have msaccess database.
I want it to put it on shared folder and access it in a c# app on network.
There will concurrent user as well.
Please provide some sample code on how to do this.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Miguel OzSoftware EngineerCommented:
You can not use MS Access this way as Access does not support concurrency (multiple users updating information on the same table). For concurrency you need to upgrade to SQL Server
Maverick_CoolAuthor Commented:
I mean if happens one after the other its ok.
DB Read should not fail.
Atleat the connection should be concurrent.
Éric MoreauSenior .Net ConsultantCommented:
check the connections strings from
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Maverick_CoolAuthor Commented:
but howz that help my question. some explanation plz.
Well, if there's only one user accessing your program at a time (because msaccess cannot support multiple users at the same time).
Then there isn't any problem as long as you use the correct connection strings in your program.

read this: to get you started.
Then you will understand what emoreau meant by checking the connection string.
Maverick_CoolAuthor Commented:
i understand what you are stressing.
but all i wanted to know is that, i have put .mbd file in shared location.
Now to 2 person try access the db from 2 different machine. i will it throw exception. or 1 will wait for the other.
Oh, that depends if you are trying to write/update at the same time. If yes, then you will run into errors (throw exceptions). If you are just reading, then it'll be able to run fine if both users use read only access (specify this in the connection string)
Maverick_CoolAuthor Commented:
" users use read only access (specify this in the connection string)"
please empathize on this
Read this: for some design hints and

for your connection (this is for vb... but should work for c#) This is the code that allows multiple connection
conn.mode = 16 'adModeShareDenyNone'

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.