Solved

(0x80004005) Non specific error (ASP page)

Posted on 2009-04-06
3
236 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
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 49

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now