#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    64
    Rep Power
    11

    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)
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    64
    Rep Power
    11
    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?

IMN logo majestic logo threadwatch logo seochat tools logo