Results 1 to 2 of 2

Thread: problem with connection strin in ado.net

  1. #1

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    problem with connection strin in ado.net

    hi all, i am trying to connect to an access database, it has a password called : "xxx" , i am using a connection string as following but it keeps pop up an oledb exception.

    when i use the same connection string on a database without a password, i have no problem

    here is the problemetic connection string

    VB Code:
    1. db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\mainx.mdb;password=maged;username=admin"


    thx in advance

  2. #2
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Question

    Have you tried ConnectionStrings.com

    I use something like this:
    VB Code:
    1. Public Const ACCESS2K = "Provider=Microsoft.Jet.OLEDB.4.0;Password='';User ID=Admin;Data Source=C:\mydb.mdb"
    ~Peter


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