Results 1 to 6 of 6

Thread: connectionString to MS-Access

  1. #1
    Lively Member Cerebrate's Avatar
    Join Date
    May 00
    Posts
    82

    Smile connectionString to MS-Access

    can anyone show me what's should be my connectionString if my data base is access?

  2. #2
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 00
    Posts
    9,599
    something like this

    Code:
    sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test.mdb"
    -= a peet post =-

  3. #3
    Lively Member Cerebrate's Avatar
    Join Date
    May 00
    Posts
    82
    Do i have to register my database on ODBC?

  4. #4
    Lively Member Cerebrate's Avatar
    Join Date
    May 00
    Posts
    82

    in addition

    the database requires password.
    so do i just add this:
    sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test.mdb;password=xxxx"
    ??

  5. #5
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 00
    Posts
    9,599
    -= a peet post =-

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 00
    Posts
    9,599

    Re: in addition

    Originally posted by Cerebrate
    the database requires password.
    so do i just add this:
    sConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\test.mdb;password=xxxx"
    ??
    like this:

    Code:
    sConnString = Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Test.mdb;Jet OLEDB:Database Password=secret
    -= a peet post =-

Posting Permissions

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