Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Connection StringII

Connection StringII

Scheduled Pinned Locked Moved C#
csharpdatabasehelpquestion
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mazdak
    wrote on last edited by
    #1

    I try to connect to a password secured database, with oledbdataadapter and I use the following connection string : @"Provider=Microsoft.Jet.OLEDB.4.0;User ID = admin;Password=""123"";Data Source=F:\Mehdi\C#\Source Code\Filing System Manager\Sample.mdb;" then I get the following error : --------------------------- Microsoft Data Link Error --------------------------- Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user. --------------------------- OK --------------------------- I would really apreciate an advise on this case :( thanks Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd

    N 2 Replies Last reply
    0
    • M Mazdak

      I try to connect to a password secured database, with oledbdataadapter and I use the following connection string : @"Provider=Microsoft.Jet.OLEDB.4.0;User ID = admin;Password=""123"";Data Source=F:\Mehdi\C#\Source Code\Filing System Manager\Sample.mdb;" then I get the following error : --------------------------- Microsoft Data Link Error --------------------------- Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user. --------------------------- OK --------------------------- I would really apreciate an advise on this case :( thanks Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd

      N Offline
      N Offline
      Neil Van Note
      wrote on last edited by
      #2

      I was receiving the same error when I was looking at this for you the first time. I came up with the following solution (As stated in MSDN). Change the following registry key to point to your .mdw security file. \HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\4.0\Engines\SystemDB I thought it was a bit of a hack, but I found enough documentation (in MSDN) that kept repeating it, so I tried it, and it works... There has to be a better way... Regards

      1 Reply Last reply
      0
      • M Mazdak

        I try to connect to a password secured database, with oledbdataadapter and I use the following connection string : @"Provider=Microsoft.Jet.OLEDB.4.0;User ID = admin;Password=""123"";Data Source=F:\Mehdi\C#\Source Code\Filing System Manager\Sample.mdb;" then I get the following error : --------------------------- Microsoft Data Link Error --------------------------- Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user. --------------------------- OK --------------------------- I would really apreciate an advise on this case :( thanks Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd

        N Offline
        N Offline
        Neil Van Note
        wrote on last edited by
        #3

        Just found the better way... string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;User ID=Peon;Password=PeonPassword;Data Source=C:\MyPath\SomeDatabase.mdb;Jet OLEDB:System database=C:\MyPath\MySecurityDatabase.mdw"; Regards

        M 1 Reply Last reply
        0
        • N Neil Van Note

          Just found the better way... string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;User ID=Peon;Password=PeonPassword;Data Source=C:\MyPath\SomeDatabase.mdb;Jet OLEDB:System database=C:\MyPath\MySecurityDatabase.mdw"; Regards

          M Offline
          M Offline
          Mazdak
          wrote on last edited by
          #4

          Thank you Neil,Now I'm not at place to check it but I'll do it as soos as possible. :) Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd

          M 1 Reply Last reply
          0
          • M Mazdak

            Thank you Neil,Now I'm not at place to check it but I'll do it as soos as possible. :) Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd

            M Offline
            M Offline
            Mazdak
            wrote on last edited by
            #5

            Hi neil, Thanks for the help, it solved my problem.. well almost !!! Now I get this error message (It's because of the username and password of the mdb file, ichecked it ) with the right username and password it gives the same thing ! --------------------------- --------------------------- Index #0 Message: Not a valid account name or password. Native: -124585838 Source: Microsoft JET Database Engine SQL: 3029 --------------------------- OK --------------------------- It's really getting on my nerves :(( I wonder if u could solve this problem, too. thanks Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd

            N 1 Reply Last reply
            0
            • M Mazdak

              Hi neil, Thanks for the help, it solved my problem.. well almost !!! Now I get this error message (It's because of the username and password of the mdb file, ichecked it ) with the right username and password it gives the same thing ! --------------------------- --------------------------- Index #0 Message: Not a valid account name or password. Native: -124585838 Source: Microsoft JET Database Engine SQL: 3029 --------------------------- OK --------------------------- It's really getting on my nerves :(( I wonder if u could solve this problem, too. thanks Mazy "The path you tread is narrow and the drop is shear and very high, The ravens all are watching from a vantage point near by, Apprehension creeping like a choo-train uo your spine, Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd

              N Offline
              N Offline
              Neil Van Note
              wrote on last edited by
              #6

              My passwords work :-D, Sorry... I did notice your connection string had quotes (in the root of this thread) around the password, get rid of those... Regards

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups