Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 6th, 2004, 06:09 AM
Registered User
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access 2003 connection problem

Hopefully someone can help me in here, the problem is with access 2003, and using an OleDBDataAdapter.

I set my Provider as "M.S Jet 4.0..." and when i press test connection it says connection established.

On the query type screen i have "Use sql statement selected" as thats the only one that will let me choose.

NOw in the generate SQL Statement i choose "query builder" and select the table i want to use (the DB has only got one table and thats the one i am using) so i select all and my query is like

SELECT
    Names.*
FROM
    Names
when i press the screen says:

Generated SELECT statement
Unspecified error: E_FAIL (0*80004005).

So can someone tell me what i am doing wrong please.

Thanks


 
Old July 6th, 2004, 10:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Plz post ur code! all stories r teh same here.
ur problem is in Code! Where do u get error & what is it?!

Always:),
Hovik Melkomian.
 
Old July 6th, 2004, 11:19 AM
Registered User
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is no code, what i am trying to do is basically set up a connection using OleDBDataAdapter.



 
Old July 6th, 2004, 11:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

let me check ur steps again:
1_ u creat an Connection & its ok!
2_ u add a DataAdapter, set its connection to Okeyed Coonnection & then use query builder to create ur SELECT.

u use Visual Stedio's Wizards & u get error?!?!
dear friend, be sure Computers r much stupid than us but they do their assigned jobs PERFECT & greatly.
So I suggest to check ur all steps (even drop all & go again)
u should be wrong in a step.

Keep it touch.

Always:),
Hovik Melkomian.
 
Old July 23rd, 2004, 01:04 AM
Registered User
 
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello
Well i figured out the problem, everything i was doing was totally correct, but i had to download the latest MS Jet 4.0 Service Pack 8.

But thats anyways for the help.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2003 Problem allenle37 BOOK: Access 2003 VBA Programmer's Reference 2 May 7th, 2007 11:55 PM
ADO Connection problems in Access 2003 elecdave Access VBA 4 January 22nd, 2007 10:49 AM
VB. NET MS Access 2003 OLEDB connection mike.cody ASP.NET 1.0 and 1.1 Basics 1 February 22nd, 2006 08:20 PM
VS.NET 2003 and MSDE 2000 connection problem ponuman SQL Server 2000 4 October 28th, 2005 04:02 PM
Begging Access 2003 VBA Ch 5 - connection problem Quixote BOOK: Beginning Access VBA 2 February 3rd, 2005 06:45 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.