CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Jan 2008
    Posts
    43

    [RESOLVED] please delete

    delete
    Last edited by bulbish; August 15th, 2008 at 01:26 PM. Reason: need deleted

  2. #2
    Join Date
    Dec 2003
    Location
    Northern Ireland
    Posts
    1,362

    Re: why this connection string doesnt work?

    Which version of access are you using?

    You should have the local path to the mdb file. I've never seen one with http://.... etc
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook


    0100 1101 0110 1001 0110 0011 0110 1000 0110 0001 0110 0101 0110 1100 0010 0000 0100 0101 0110 1100 0110 1100 0110 0101 0111 0010

  3. #3
    Join Date
    Jan 2008
    Posts
    43

    Re: why this connection string doesnt work?

    what path should i use if my ASP VB program is in the http://weblab.devry.edu/LNGBIS355XSU...YouthBookstore

    folder and i copied the mdb database to the same folder for simplicity .

    - by the way, is it ok to just copy the mdb file to a different folder?

  4. #4
    Join Date
    Jan 2008
    Posts
    43

    Re: why this connection string doesnt work?

    weblab.devry.edu/LNGBIS355XSUM08A/PMcDonald/FountainOfYouthBookstore

  5. #5
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: why this connection string doesnt work?

    I am going to tell you the truth, I don't even know if you can access a database on the internet. I am 90% sure that the database needs to be on your PC. Though I could be wrong.

  6. #6
    Join Date
    Jan 2008
    Posts
    43

    Re: why this connection string doesnt work?

    yes, but the script runs on the same server , i run it from the server, not from my pc
    go to and run it yourself and see what error you get

    http://weblab.devry.edu/LNGBIS355XSU.../HomePage.aspx

  7. #7
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: why this connection string doesnt work?

    Your connection string that you posted is not what is being used on the server. Post the code that the server is using to open the database.

  8. #8
    Join Date
    Jan 2008
    Posts
    43

    Re: why this connection string doesnt work?

    Quote Originally Posted by eclipsed4utoo
    Your connection string that you posted is not what is being used on the server. Post the code that the server is using to open the database.
    i thought the only infotrmation that was important was what folder the mdb database file was in.. i know there is no password or username

  9. #9
    Join Date
    Dec 2003
    Location
    Northern Ireland
    Posts
    1,362

    Re: why this connection string doesnt work?

    yes, you are right... only the directory is important. And yes, scripts can access it from the same server. I doubt your website resides in the root directory of the c drive. If you're not sure, put this code in a page:

    Code:
    Dim path as string = Server.MapPath(".")
    response.write(path)
    HTH
    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook


    0100 1101 0110 1001 0110 0011 0110 1000 0110 0001 0110 0101 0110 1100 0010 0000 0100 0101 0110 1100 0110 1100 0110 0101 0111 0010

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