PC Review


Reply
Thread Tools Rate Thread

ADO.NET and access

 
 
shimonsim@talamus.com
Guest
Posts: n/a
 
      14th Jul 2003
I get E_FAIL erreo when I try to retreave dataset info for some tables in my
access database. does anyone know why?
Thanks, Shimon.


 
Reply With Quote
 
 
 
 
Kevin Sun [MS]
Guest
Posts: n/a
 
      15th Jul 2003
We need to narrow down this problem as below:

1. Identify whether or not this problem is related to the Access databse.
You can test this in a new database or Northwind sample database.

2. Identify whether or not this problem is related to the ADO.NET code. You
can show us the code snippet, especially, let us know which line of code
fails.


Sincerely,

Kevin
Microsoft Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! - www.microsoft.com/security

--------------------
| From: "(E-Mail Removed)" <(E-Mail Removed)>
| Subject: ADO.NET and access
| Date: Mon, 14 Jul 2003 09:07:11 -0400
| Lines: 5
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.framework.adonet
| NNTP-Posting-Host: 217.piscataway-06rh15rt.nj.dial-access.att.net
12.89.74.217
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:55615
| X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
|
| I get E_FAIL erreo when I try to retreave dataset info for some tables in
my
| access database. does anyone know why?
| Thanks, Shimon.
|
|
|

 
Reply With Quote
 
shimonsim@talamus.com
Guest
Posts: n/a
 
      16th Jul 2003
It seems to me that it is problem with database. I tried to do similar tasks
with other databases and it seems to be ok. Or if there were problems there
were easy to track. But it this case I just don't know were to start. I am
doing C# Windows application. and I try to get through OleDbAdapter wizard.
But after I specify query (it is were simple: Select * From Table) it gives
me an error. IErrorInfo .Description E_FAIL . I have three tables and I am
creating 3 adaptors on one form. The error always appear on the same tables
and the order I am adding adapters doesn't make a difference. The 2 tables
in the beginning were child tables (had foreign key) after I removed them
(and upgraded to Pack 7 so I am not sure what did it. May be upgrade) I
managed to configure adapters but I cam not create Dataset base on this
information. the system troughs me the same exception. And application
doen't run if I just use uptyped Dataset again the same exception. I tried
to do the same action on othe database (wasn't created by me) and it seems
to work. I compared DBs - do not see anything that would make my app fail.
Thanks
Shimon


"Kevin Sun [MS]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> We need to narrow down this problem as below:
>
> 1. Identify whether or not this problem is related to the Access databse.
> You can test this in a new database or Northwind sample database.
>
> 2. Identify whether or not this problem is related to the ADO.NET code.

You
> can show us the code snippet, especially, let us know which line of code
> fails.
>
>
> Sincerely,
>
> Kevin
> Microsoft Support
>
> This posting is provided "AS IS" with no warranties, and confers no

rights.
> Get Secure! - www.microsoft.com/security
>
> --------------------
> | From: "(E-Mail Removed)" <(E-Mail Removed)>
> | Subject: ADO.NET and access
> | Date: Mon, 14 Jul 2003 09:07:11 -0400
> | Lines: 5
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> | Message-ID: <(E-Mail Removed)>
> | Newsgroups: microsoft.public.dotnet.framework.adonet
> | NNTP-Posting-Host: 217.piscataway-06rh15rt.nj.dial-access.att.net
> 12.89.74.217
> | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
> | Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.framework.adonet:55615
> | X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
> |
> | I get E_FAIL erreo when I try to retreave dataset info for some tables

in
> my
> | access database. does anyone know why?
> | Thanks, Shimon.
> |
> |
> |
>



 
Reply With Quote
 
Kevin Sun [MS]
Guest
Posts: n/a
 
      21st Jul 2003
Hi Shimon,

Try to change the SQL statement

FROM

Select * From Table

TO

Select field1, field2, field3 From Table

If it works, this problem may be related to a certain field in the table.

Also, try to create a query in the Access database. The query has same SQL
statement as the code. Does the same problem occur?


Sincerely,

Kevin
Microsoft Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! - www.microsoft.com/security

--------------------
| From: "(E-Mail Removed)" <(E-Mail Removed)>
| References: <(E-Mail Removed)>
<(E-Mail Removed)>
| Subject: Re: ADO.NET and access
| Date: Tue, 15 Jul 2003 22:40:30 -0400
| Lines: 70
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uaO#(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.framework.adonet
| NNTP-Posting-Host: 127.newark-05rh16rt.nj.dial-access.att.net
12.89.169.127
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:55800
| X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
|
| It seems to me that it is problem with database. I tried to do similar
tasks
| with other databases and it seems to be ok. Or if there were problems
there
| were easy to track. But it this case I just don't know were to start. I am
| doing C# Windows application. and I try to get through OleDbAdapter
wizard.
| But after I specify query (it is were simple: Select * From Table) it
gives
| me an error. IErrorInfo .Description E_FAIL . I have three tables and I am
| creating 3 adaptors on one form. The error always appear on the same
tables
| and the order I am adding adapters doesn't make a difference. The 2
tables
| in the beginning were child tables (had foreign key) after I removed them
| (and upgraded to Pack 7 so I am not sure what did it. May be upgrade) I
| managed to configure adapters but I cam not create Dataset base on this
| information. the system troughs me the same exception. And application
| doen't run if I just use uptyped Dataset again the same exception. I tried
| to do the same action on othe database (wasn't created by me) and it seems
| to work. I compared DBs - do not see anything that would make my app fail.
| Thanks
| Shimon
|
|
| "Kevin Sun [MS]" <(E-Mail Removed)> wrote in message
| news:(E-Mail Removed)...
| > We need to narrow down this problem as below:
| >
| > 1. Identify whether or not this problem is related to the Access
databse.
| > You can test this in a new database or Northwind sample database.
| >
| > 2. Identify whether or not this problem is related to the ADO.NET code.
| You
| > can show us the code snippet, especially, let us know which line of code
| > fails.
| >
| >
| > Sincerely,
| >
| > Kevin
| > Microsoft Support
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| > Get Secure! - www.microsoft.com/security
| >
| > --------------------
| > | From: "(E-Mail Removed)" <(E-Mail Removed)>
| > | Subject: ADO.NET and access
| > | Date: Mon, 14 Jul 2003 09:07:11 -0400
| > | Lines: 5
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <(E-Mail Removed)>
| > | Newsgroups: microsoft.public.dotnet.framework.adonet
| > | NNTP-Posting-Host: 217.piscataway-06rh15rt.nj.dial-access.att.net
| > 12.89.74.217
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.framework.adonet:55615
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
| > |
| > | I get E_FAIL erreo when I try to retreave dataset info for some tables

| in
| > my
| > | access database. does anyone know why?
| > | Thanks, Shimon.
| > |
| > |
| > |
| >
|
|
|

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open my Access files after conversion from Access 97 to Access 2003 M Shafaat Microsoft Access 5 10th Apr 2010 09:04 PM
Saving Access 2007 database in Access 2003 format fails in Access =?Utf-8?B?U3Bpcm8=?= Microsoft Access External Data 0 13th Aug 2006 08:37 AM
W2K3 Service w/ UNC Access, Local Disk Access, and DB Access Rob Microsoft C# .NET 6 2nd Aug 2004 01:44 PM
Access "showing images on first page only of very wide Access report. Windows XP, Access XP Jack Microsoft Access Reports 4 18th Nov 2003 03:01 PM
Re: Allowing users (w/o MS Access) to access an Access 2000 database Wayne Morgan Microsoft Access 0 29th Sep 2003 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:30 AM.