September 25th, 2003, 09:45 AM
open Access-database exclusiv(VC++ .net)
I use this String to connect to my Access-database:
Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\Database.mdb
how can I open this exclusiv?(nobody should be able to use the database while my program is running)
September 26th, 2003, 09:55 AM
I found out that I just need an open Connection to the database so that nobody else is able to open it. But my problem now is this:
When my function which uses the connection ends the connection is closed automatically. How can I open a connection which stays open till the program is closed?