Re: Error when calling the OleDbDataAdapter.Fill() method
- From: "Mary Chipman [MSFT]" <mchip@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 05 Jun 2007 12:01:26 -0400
Have you tried copying and pasting the query into an Access query
window (the SQL pane)? That will tell you whether there's a keyword
violation or not.
-mary
On Mon, 4 Jun 2007 12:46:19 -0400, "Nathan Sokalski"
<njsokalski@xxxxxxxxxxx> wrote:
I am recieving the following error message when I call the.
System.Data.OleDb.OleDbDataAdapter.Fill() method in ASP.NET/VB.NET:
IErrorInfo.GetDescription failed with E_FAIL(0x80004005).
I have looked for help on this error on the web, and every site I found said
it is caused by using a keyword as a fieldname in my database. However, I
have checked and am pretty sure that none of my fieldnames are keywords.
Here is the SQL statement I am executing (I am using Microsoft Access as my
database):
SELECT headline,url,summary,updated FROM worldnews EXCEPT (SELECT
headline,url,summary,updated FROM worldnews WHERE newssection='Archives'
UNION SELECT TOP 5 headline,url,summary,updated FROM worldnews WHERE
newssection='Archives' UNION SELECT TOP 5 headline,url,summary,updated FROM
worldnews WHERE newssection='Main') ORDER BY displayorder DESC
Also, if I execute the following statement, which you will notice involves
the same table and fields, on the same database:
SELECT TOP 5 headline,url,summary,updated FROM worldnews WHERE
newssection='Main' ORDER BY displayorder DESC
It executes as expected with no problem. What is the problem here? Did I
make a syntax error in the SQL statement that is giving me a problem? Is the
error because the query will return 0 records (The database does not have
many records yet since the site is not yet live)? Thanks.
- Follow-Ups:
- Re: Error when calling the OleDbDataAdapter.Fill() method
- From: Nathan Sokalski
- Re: Error when calling the OleDbDataAdapter.Fill() method
- References:
- Error when calling the OleDbDataAdapter.Fill() method
- From: Nathan Sokalski
- Error when calling the OleDbDataAdapter.Fill() method
- Prev by Date: Re: System.Transaction
- Next by Date: Re: Simple transaction question ????
- Previous by thread: Error when calling the OleDbDataAdapter.Fill() method
- Next by thread: Re: Error when calling the OleDbDataAdapter.Fill() method
- Index(es):
Relevant Pages
|
Loading