SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2004
    Location
    INDIA
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Want accurate database connection string

    HI all,
    i have uploaded a small site having MSACCESS as Backend database!...
    i am facing some problem using it...
    i have placed my DB(.mdb file) at root directory of site.. i am not able to get path to that mdb at runtime.. here what i have tried ...

    my connection string

    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..//Blog.mdb;Persist Security Info=

    Error i am facing
    Microsoft JET Database Engine error '80004005'

    Could not find file 'c:\windows\system32\Blog.mdb'.

    /Default.asp, line 8

    could anybody help me in this


    thanks for any help or info provided!
    Cheers,
    Alok Gupta
    visit me at http://www.thatsalok.com

  2. #2
    Afrika
    Join Date
    Jul 2004
    Location
    Nigeria
    Posts
    1,737
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    myConnect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("..\Blog.mdb") & ";Persist Security Info="


Bookmarks

Posting Permissions

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