Solved

(0x80004005) Non specific error (ASP page)

Posted on 2009-04-06
3
243 Views
Last Modified: 2012-05-06
Hi All,

I am getting this non specific error and cannot fugure why. Any ideas.
-------------------------------------------------------------------------------------------
set rsData = Server.CreateObject("ADODB.Recordset")

rsData.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\Inetpub\Data\MyDataBase.mdb; Persist security Info=False"

strSQL = "SELECT ID, LangActive, PageLang, Language, VarFolderName FROM tblLanguages Where LangActive And LangBought Order By ID;"
rsData.Source = strSQL
rsData.Open  <<<<<<<<<<<<<<<<<<<<<<<<< This line throws the error !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Kind regards

A.
0
Comment
Question by:Abiel de Groot
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 24076093
Try changing your code to the following and seeing if you get any more information:
set rsData = Server.CreateObject("ADODB.Recordset")
 
rsData.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\Inetpub\Data\MyDataBase.mdb; Persist security Info=False" 
 
strSQL = "SELECT ID, LangActive, PageLang, Language, VarFolderName FROM tblLanguages Where LangActive And LangBought Order By ID;"
rsData.Source = strSQL
 
On Error Resume Next
 
rsData.Open
 
For Each error In rsData.ActiveConnection.Errors
    Response.Write "error: " & error.Number & ", " & error.Description & "<br/>"
Next
 
On Error Goto 0

Open in new window

0
 
LVL 52

Assisted Solution

by:Ryan Chong
Ryan Chong earned 250 total points
ID: 24076145
>>SELECT ID, LangActive, PageLang, Language, VarFolderName FROM tblLanguages Where LangActive And LangBought Order By ID

Doesn't seems a valid SQL statement for me, try something like:

SELECT ID, LangActive, PageLang, Language, VarFolderName FROM tblLanguages Where LangActive = 1 And LangBought = 'balbal' Order By ID


in your "where" cause, try compare it with a value.....
0
 
LVL 5

Author Comment

by:Abiel de Groot
ID: 24076699
Hi Guys,

Many thanks. Both of your ideas helped in finally respoving the issue. It was a very stupid thing look at the select statement again:

SELECT ID, LangActive, PageLang, Language ...

The word "Language" is a reserved ASP word.

That caused the error.

Many thanks again.

Kind regards

Abiel M de groot

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question