CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: ADODB

  1. #1
    Join Date
    Jul 2001
    Location
    maharashtra,india
    Posts
    181

    ADODB

    hi
    i am trying to open an password protected Access 2000 Database using ADODB . i am getting an error
    "Cannot Start ur application.The work group information file is missing or opened exclusively by another user" but i am sure nobody is using it this is my coding

    Dim db As New ADODB.Connection
    Dim rd As New ADODB.Recordset
    db.Open "Provider=Microsoft.Jet.OLEDB.4.0;User Id=Admin;Password=cool;Data Source=D:\cool.mdb;Persist Security Info=False"
    rd.Open "Select * from saf", db, adOpenStatic, adLockOptimistic
    Text1.Text = rd.Fields(0).Value

    i searched previous question realted to this 1 guru had suggested to user "Pwd" instead of "Password" in the connection string which is also giving me an error
    "Cannot find installable ISAM"
    plzz help me
    thanx


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: ADODB

    >Cannot find installable ISAM
    you sure you have Microsoft.Jet.OLEDB.4.0 drivers?
    May be adding an Adodc1 on a form and using its options to build the connection string (and testing it) may help....

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Jul 2001
    Location
    maharashtra,india
    Posts
    181

    Re: ADODB

    yes i do have "Microsoft.Jet.OLEDB.4.0 drivers"
    cause when i tried to open a database without password it was working fine without any errors


  4. #4
    Join Date
    Jul 2001
    Location
    maharashtra,india
    Posts
    181

    Re: ADODB

    Even Adodc1 is giving me the same error
    Cannot Start ur application.The work group information file is missing or opened exclusively by another user


  5. #5
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: ADODB

    then call task manager (if on winnt) and look at opened processes. Maybe something is not closed. In case, simply restart your machine. Maybe you've forgot to close or set to nothing some referencing variables...

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  6. #6
    Join Date
    Jul 2001
    Location
    maharashtra,india
    Posts
    181

    Re: ADODB

    no this is not possible cause i havent opened this database for 2 days


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured