Unspecified error problem

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

  1. #1

    Default Unspecified error problem

    I have tried this on multiple computers - - I get
    Unspecified error
    /search1.asp, line 13

    here's the very simple code:

    Set MyConn=Server.CreateObject("ADODB.Connection")
    MyConn.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;" & _
    "DATA SOURCE=" & server.mappath("\Webdb.mdb")
    sql="Select * from Names"
    Set MyRs=MyConn.Execute(sql) '<------this is the line where it breaks - -

    I'm using IE 6 and I've tried a specific path for the db instead of
    server.mappath and it still happens - - - this used to work fine in earlier
    versions of IE - - any ideas?


    Elmo Watson Guest

  2. Similar Questions and Discussions

    1. Unspecified Error
      When openning the database, sometimes (yes, not always) it gives the error: "Unspecified error". How could I trace what the problem was?
    2. Jet OleDB Unspecified Error
      I have a Windows 2000 server with the latest updates and patches from Microsoft (Service Pack 3). I have version 2.7 of the MDAC, and version 8.0...
    3. Provider error '80004005' Unspecified error - ARRRGGGHHH!!!!!
      I have searched usenet & dev sites to no avail although many have had similar problems, reckon its an issue with DSN but not sure.. error occurs...
    4. Receiving Unspecified Error...
      Unspecified error C:\INETPUB\WWWROOT\WELCOME\../common/adovbs.inc, line 4 And line 4 is this Connect.Open "database" Its happening across the...
    5. Unspecified error using FSO
      have you tried server.CreateObject("Scripting.FileSystemObject") ? tim "Andrew Paton" <andrew.paton@nospamplease.nufsaid.net> wrote in...
  3. #2

    Default Re: Unspecified error problem

    > I'm using IE 6 and I've tried a specific path for the db instead of
    > server.mappath and it still happens - - - this used to work fine in
    earlier
    > versions of IE - - any ideas?
    A browser doesn't affect what happens in ASP code. Did you upgrade your
    operating system?

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


    Aaron Bertrand [MVP] Guest

  4. #3

    Default Re: Unspecified error problem

    Install Jet4 latest SP


    Mex



    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:%23YgbqQgwDHA.1680@TK2MSFTNGP12.phx.gbl...
    > > I'm using IE 6 and I've tried a specific path for the db instead of
    > > server.mappath and it still happens - - - this used to work fine in
    > earlier
    > > versions of IE - - any ideas?
    >
    > A browser doesn't affect what happens in ASP code. Did you upgrade your
    > operating system?
    >
    > --
    > Aaron Bertrand
    > SQL Server MVP
    > [url]http://www.aspfaq.com/[/url]
    >
    >

    Meelis Lilbok Guest

  5. #4

    Default Re: Unspecified error problem

    Elmo Watson wrote:
    > I have tried this on multiple computers - - I get
    > Unspecified error
    > /search1.asp, line 13
    >
    > here's the very simple code:
    >
    > Set MyConn=Server.CreateObject("ADODB.Connection")
    > MyConn.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;" & _
    > "DATA SOURCE=" & server.mappath("\Webdb.mdb")
    > sql="Select * from Names"
    > Set MyRs=MyConn.Execute(sql) '<------this is the line where it
    > breaks - -
    >
    > I'm using IE 6 and I've tried a specific path for the db instead of
    > server.mappath and it still happens - - - this used to work fine in
    > earlier versions of IE - - any ideas?
    The browser is irrelevant. This is server-side code.

    Is "Names" a reserved keyword? Let's see ... yes. According to
    [url]http://www.aspfaq.com/show.asp?id=2080[/url], "Names" is an ODBC reserved keyword
    which should be avoided for database object names.

    My recommendation is to change the name of that table ("Names" is not very
    descriptive anyways, is it? "Names" of what? Employees? Companies?
    Machines?). If you cannot do that for sopme reason, then you will have to
    remember to surround it with brackets whenever you use it in a query being
    run by ADO:
    [Names]

    HTH,
    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows 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