please help connecting to access database

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default please help connecting to access database

    i'm trying to connect to an access database on an asp ready server.
    i know the ftp login information - does that apply to logging into the
    database string as well?

    will this work?

    Provider=MSDASQL.1;Password=*****;PersistSecurityI nfo=True;UserID=username;


    please help, i'm a php/mysql programmer and i don't understand why this is
    so difficult. i'm think i'm losing my mind.




    Doug Parker Guest

  2. Similar Questions and Discussions

    1. Connecting to MS Access Database
      Hello, Do you know any free Director Xtra to connect to an access database? Thanx for help.
    2. Connecting to an MS Access Database
      Hello, Do you know any free Director Xtra to connect to an access database? Thanx for help.
    3. Problem connecting to an access database from an asp
      Stupid question: Does this page have a .asp extension? Ray at home "Kathryn" <andania1@hotmail.com> wrote in message...
    4. connecting access (*.mdb) database with PHP
      how can I connect access database(*.mdb) with php? what is the code? I will be happy if you write php code. Thank you! ...
    5. connecting to access database
      How can we connect microsoft access database(*.mdb) or excel(*.xls) with php? What are the codes which achieve this? ...
  3. #2

    Default Re: please help connecting to access database

    On Thu, 15 Apr 2004 13:26:27 -0400, "Doug Parker"
    <drparker@phreshdesign.com> wrote:
    >i'm trying to connect to an access database on an asp ready server.
    >i know the ftp login information - does that apply to logging into the
    >database string as well?
    Maybe. Maybe not. If the passwords and accounts are idnetical, yes.
    >will this work?
    >
    >Provider=MSDASQL.1;Password=*****;PersistSecurity Info=True;UserID=username;
    >
    >
    >please help, i'm a php/mysql programmer and i don't understand why this is
    >so difficult. i'm think i'm losing my mind.
    Might look at some tutorials:

    [url]http://www.able-consulting.com/ADO_Conn.htm[/url]
    [url]http://www.tutorial-web.com/asp/database/[/url]
    [url]http://www.vallin.com/pub/1/asp1.asp[/url]

    And of course:

    [url]http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=asp+database+tutorial[/url]

    Jeff
    Jeff Cochran Guest

  4. #3

    Default Re: please help connecting to access database

    Doug Parker wrote:
    > i'm trying to connect to an access database on an asp ready server.
    > i know the ftp login information - does that apply to logging into the
    > database string as well?
    >
    > will this work?
    >
    >
    Provider=MSDASQL.1;Password=*****;PersistSecurityI nfo=True;UserID=username;
    >
    >
    > please help, i'm a php/mysql programmer and i don't understand why
    > this is so difficult. i'm think i'm losing my mind.
    Go to [url]www.able-consulting.com/ado_conn.htm[/url] and look up the appropriate
    connection string that uses the native Jet OLEDB provider.

    For a non-password-protected database, the string can be as simple as:

    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=p:\ath\to\database.mdb

    The IUSR_machinename account on the machine needs to have Change
    (read/write/delete) permissions on the p:\ath\to folder.

    HTH,
    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

  5. #4

    Default Re: please help connecting to access database

    i apologize in advance - i've read every tutorial i could find on the
    subject, i just can't read another one. i'd really appreciate it if you
    guys would continue to walk me through it.

    did this:

    set conn = Server.CreateObject("ADODB.Connection")
    sConn = "Provider=MSDASQL;" & _
    "Driver={Microsoft Access Driver (*.mdb)};" & _
    "Dbq=/db/boonton.mdb;"
    conn.Open sConn

    got this:

    Microsoft][ODBC Microsoft Access Driver]General error Unable to open
    registry key 'Temporary (volatile) Jet DSN for process 0x744 Thread 0x3f0
    DBC 0x884b6e4 Jet'.
    /calibration/config1.asp, line 14



    "Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
    news:4085c726.17207272@msnews.microsoft.com...
    > On Thu, 15 Apr 2004 13:26:27 -0400, "Doug Parker"
    > <drparker@phreshdesign.com> wrote:
    >
    > >i'm trying to connect to an access database on an asp ready server.
    > >i know the ftp login information - does that apply to logging into the
    > >database string as well?
    >
    > Maybe. Maybe not. If the passwords and accounts are idnetical, yes.
    >
    > >will this work?
    > >
    >
    >Provider=MSDASQL.1;Password=*****;PersistSecurity Info=True;UserID=username;
    > >
    > >
    > >please help, i'm a php/mysql programmer and i don't understand why this
    is
    > >so difficult. i'm think i'm losing my mind.
    >
    > Might look at some tutorials:
    >
    > [url]http://www.able-consulting.com/ADO_Conn.htm[/url]
    > [url]http://www.tutorial-web.com/asp/database/[/url]
    > [url]http://www.vallin.com/pub/1/asp1.asp[/url]
    >
    > And of course:
    >
    >
    [url]http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=asp+database+tutorial[/url]
    >
    > Jeff

    Doug Parker Guest

  6. #5

    Default Re: please help connecting to access database

    >i apologize in advance - i've read every tutorial i could find on the
    > subject, i just can't read another one. i'd really appreciate it if you
    > guys would continue to walk me through it.
    Are you really that lazy? How do you expect to learn anything if all you do
    is expect people to hand you the answers? What are you going to do when you
    get your connection string working and you don't know how to write a SELECT
    statement? More handouts?

    I'm all for helping people learn. I'm *NOT* very fond of being told that
    rather than provide pointers I should write someone's code for them. Next
    you'll be asking me to wash your dishes.
    > set conn = Server.CreateObject("ADODB.Connection")
    > sConn = "Provider=MSDASQL;" & _
    > "Driver={Microsoft Access Driver (*.mdb)};" & _
    > "Dbq=/db/boonton.mdb;"
    > conn.Open sConn
    You've mixed up all kinds of garbage from all kinds of different places.
    First off, decide whether you want to use Access or SQL Sevrer. Then, try
    to make sure you use a JET OLEDB driver. Finally, keep in mind that the DBQ
    value is expecting a *LOCAL* path. It has no idea what /db/ is.

    Set conn = CreateObject("ADODB.Connection")
    sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
    Server.MapPath("/db/boonton.mdb")
    conn.open sConn

    [url]http://www.aspfaq.com/2126[/url]

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]


    Aaron Bertrand [MVP] Guest

  7. #6

    Default Re: please help connecting to access database

    got it, thanks for your help.

    solution:

    set conn = Server.CreateObject("ADODB.Connection")
    sConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
    server.mappath("boonton.mdb")
    conn.Open sConn



    "Doug Parker" <drparker@phreshdesign.com> wrote in message
    news:#U8UxKxIEHA.2480@tk2msftngp13.phx.gbl...
    > i apologize in advance - i've read every tutorial i could find on the
    > subject, i just can't read another one. i'd really appreciate it if you
    > guys would continue to walk me through it.
    >
    > did this:
    >
    > set conn = Server.CreateObject("ADODB.Connection")
    > sConn = "Provider=MSDASQL;" & _
    > "Driver={Microsoft Access Driver (*.mdb)};" & _
    > "Dbq=/db/boonton.mdb;"
    > conn.Open sConn
    >
    > got this:
    >
    > Microsoft][ODBC Microsoft Access Driver]General error Unable to open
    > registry key 'Temporary (volatile) Jet DSN for process 0x744 Thread 0x3f0
    > DBC 0x884b6e4 Jet'.
    > /calibration/config1.asp, line 14
    >
    >
    >
    > "Jeff Cochran" <jcochran.nospam@naplesgov.com> wrote in message
    > news:4085c726.17207272@msnews.microsoft.com...
    > > On Thu, 15 Apr 2004 13:26:27 -0400, "Doug Parker"
    > > <drparker@phreshdesign.com> wrote:
    > >
    > > >i'm trying to connect to an access database on an asp ready server.
    > > >i know the ftp login information - does that apply to logging into the
    > > >database string as well?
    > >
    > > Maybe. Maybe not. If the passwords and accounts are idnetical, yes.
    > >
    > > >will this work?
    > > >
    > >
    >
    >Provider=MSDASQL.1;Password=*****;PersistSecurity Info=True;UserID=username;
    > > >
    > > >
    > > >please help, i'm a php/mysql programmer and i don't understand why this
    > is
    > > >so difficult. i'm think i'm losing my mind.
    > >
    > > Might look at some tutorials:
    > >
    > > [url]http://www.able-consulting.com/ADO_Conn.htm[/url]
    > > [url]http://www.tutorial-web.com/asp/database/[/url]
    > > [url]http://www.vallin.com/pub/1/asp1.asp[/url]
    > >
    > > And of course:
    > >
    > >
    >
    [url]http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=asp+database+tutorial[/url]
    > >
    > > Jeff
    >
    >

    Doug Parker Guest

  8. #7

    Default Re: please help connecting to access database

    Great, now please read [url]http://www.aspfaq.com/2126[/url] to see why you should
    change from using the ODBC driver to the JET OLEDB driver.

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]


    "Doug Parker" <drparker@phreshdesign.com> wrote in message
    news:eQ9IRcxIEHA.2948@TK2MSFTNGP11.phx.gbl...
    > got it, thanks for your help.
    >
    > solution:
    >
    > set conn = Server.CreateObject("ADODB.Connection")
    > sConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
    > server.mappath("boonton.mdb")
    > conn.Open sConn

    Aaron Bertrand [MVP] Guest

  9. #8

    Default Re: please help connecting to access database

    Doug Parker wrote:
    > got it, thanks for your help.
    >
    > solution:
    >
    > set conn = Server.CreateObject("ADODB.Connection")
    > sConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
    > server.mappath("boonton.mdb")
    > conn.Open sConn
    >
    This is the wrong solution. The correct solution is:
    sConn = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
    "Data Source=" & server.mappath("boonton.mdb")

    The ODBC provider has been deprecated. You should use the native OLEDB
    provider when one exists.

    Bob Barrows

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Bob Barrows [MVP] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139