new to asp and ado from dao and vb, can't open mdb/recordset

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

  1. #1

    Default Re: new to asp and ado from dao and vb, can't open mdb/recordset

    It's got nothing to do with your connection string. An asp pabe knows
    nothing about the ADO constants (adOpenDynamic, etc.)
    unless you tell it about them. One way is via the adovbs.inc file which you
    can "include" in your page via a #include statement. A better way is
    discussed here: [url]http://www.aspfaq.com/show.asp?id=2112[/url].

    You should also take a look at these articles because I can practically
    guarantee that you will run into this problem next:
    [url]http://www.aspfaq.com/show.asp?id=2062[/url] - updatable cursor
    [url]http://www.aspfaq.com/show.asp?id=2009[/url] - 80004005 errors

    HTH,
    Bob Barrows

    bbxrider wrote:
    > trying to open an existing access2000 .mdb existing table with asp
    > am using this code
    >
    > <script language="vbscript" runat="server">
    > const adOpenDynamic =2
    > const adLockOptimistic =3
    > const adCmdTable =2
    > private rs
    > private firstname, lastname
    > dim strDbConnection
    > strDbConnection = "provider=microsoft.jet.oledb.4.0;" & _
    > "data source=e:\inetput\wwwroot\webasp\volunteer.mdb"
    > set rs = createobject("adodb.recordset") (THIS IS LINE 21)
    > rs.open "volunteerPrimary", strDbConnect, adOpenDynamic,
    > adLockOptimistic, adCmdTable
    >
    > get this error on the returned web page
    > Error Type:
    > ADODB.Recordset (0x800A0BB9)
    > Arguments are of the wrong type, are out of acceptable range, or are
    > in conflict with one another.
    > /webasp/phsVolunteerData.asp, line 21
    >
    > can't find any other error info in the server logs, actually not sure
    > if am looking at the right log there are so many, i've checked the
    > logs for the server and the virtual website
    >
    > anybody know why this won't open
    >
    > where do i find which provider string to use??? i know its access,
    > but where is the property that lets me know i'm using say
    > 'jet.oledb.4.0' or if mysql that provider string
    >
    > appreciate any help and also suggestions for the better ado manuals,
    > i'm sure theres plently out there


    Bob Barrows Guest

  2. Similar Questions and Discussions

    1. Intermittent System.OutOfMemoryException with ADODB.RecordSet.Open
      I am using ADO to read mailbox contents in Exchange 2000. Every so often (about 10 errors a day out of 20,000 or more requests) calls to...
    2. ADO recordset open method - pagecount -1
      Hi I have used ADO recordset open method on a ASP page for the sql command string its a name of a Stored Proc as follows Set conn =...
    3. Too few parameters to RecordSet.Open?
      Hi All! My ASP page below receives the following error: Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80040E10) Too few...
    4. RecordSet.Move or RecordSet.AbsolutePosition??
      Hi, I'm trying to use either one of these methods to position the cursor in a specific position inside a recordset, but neither one seems to...
    5. ERROR-- Unable to open file "../Recordset.js"
      hi all I am having some problem whenever I am going to click the Binding panel for request some variable, it shows the following message.. ...
  3. #2

    Default Re: new to asp and ado from dao and vb, can't open mdb/recordset

    Ahhharrr set rs = createobject("adodb.recordset")

    you are making the object on the clinet computer

    you need

    set rs = server.createobject("adodb.recordset")


    "bbxrider" <bbxrider1@comcast.net> wrote in message
    news:%23eH42DBRDHA.3768@tk2msftngp13.phx.gbl...
    > trying to open an existing access2000 .mdb existing table with asp
    > am using this code
    >
    > <script language="vbscript" runat="server">
    > const adOpenDynamic =2
    > const adLockOptimistic =3
    > const adCmdTable =2
    > private rs
    > private firstname, lastname
    > dim strDbConnection
    > strDbConnection = "provider=microsoft.jet.oledb.4.0;" & _
    > "data source=e:\inetput\wwwroot\webasp\volunteer.mdb"
    > set rs = createobject("adodb.recordset") (THIS IS LINE 21)
    > rs.open "volunteerPrimary", strDbConnect, adOpenDynamic, adLockOptimistic,
    > adCmdTable
    >
    > get this error on the returned web page
    > Error Type:
    > ADODB.Recordset (0x800A0BB9)
    > Arguments are of the wrong type, are out of acceptable range, or are in
    > conflict with one another.
    > /webasp/phsVolunteerData.asp, line 21
    >
    > can't find any other error info in the server logs, actually not sure if
    am
    > looking at the right log there are so many, i've checked the logs for the
    > server and the virtual website
    >
    > anybody know why this won't open
    >
    > where do i find which provider string to use??? i know its access, but
    > where is the property that lets me know i'm using say 'jet.oledb.4.0' or
    if
    > mysql that provider string
    >
    > appreciate any help and also suggestions for the better ado manuals, i'm
    > sure theres plently out there
    >
    >
    >

    Mosley 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