Ask a Question related to ASP Database, Design and Development.
-
Elmo Watson #1
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
-
Unspecified Error
When openning the database, sometimes (yes, not always) it gives the error: "Unspecified error". How could I trace what the problem was? -
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... -
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... -
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... -
Unspecified error using FSO
have you tried server.CreateObject("Scripting.FileSystemObject") ? tim "Andrew Paton" <andrew.paton@nospamplease.nufsaid.net> wrote in... -
Aaron Bertrand [MVP] #2
Re: Unspecified error problem
> I'm using IE 6 and I've tried a specific path for the db instead of
earlier> server.mappath and it still happens - - - this used to work fine inA browser doesn't affect what happens in ASP code. Did you upgrade your> versions of IE - - any ideas?
operating system?
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
Aaron Bertrand [MVP] Guest
-
Meelis Lilbok #3
Re: Unspecified error problem
Install Jet4 latest SP
Mex
"Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
news:%23YgbqQgwDHA.1680@TK2MSFTNGP12.phx.gbl...> earlier> > 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>> > 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
-
Bob Barrows #4
Re: Unspecified error problem
Elmo Watson wrote:
The browser is irrelevant. This is server-side code.> 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?
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



Reply With Quote

