Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics 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 August 6th, 2008, 04:47 PM
Registered User
 
Join Date: Sep 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default connecting to Access from C#

Trying to write a simple proof of concept to read things from our sql server database and export them to MS Access, but got hung up on the connection. (ASP.NET 3.5, access 2007).

Looking at the connection string in VS when I hit Open() on my OleDbConnection object:

"Provider=Microsoft.Jet.OLEDB.4.0;DataSource=C:\\t emp\\temp.accdb;Persist Security Info=False;"

throws an OleDbException with the messsage "Could not find installable ISAM".

I've been searching around to no avail; most people's problems seem to be simple typos in the string, which I don't see if I have.

I believe I correctly peeked into the registry and saw Jet 4.0 installed in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engi nes\, so I think I'm o.k. there.

 
Old August 7th, 2008, 10:09 AM
Registered User
 
Join Date: Sep 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Looking in regedit, I see Jet 4.0 under Engines, but under ISAM Formats, I only see Jet 2.x and Jet 3.x.

Is this the problem, that Jet 4.0 isn't there? If so, anyone know how to get it?






Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access - Connecting to dartcoach VB.NET 2002/2003 Basics 2 February 27th, 2007 12:05 PM
Error connecting to Access RDEdwards Classic ASP Databases 6 November 5th, 2004 10:48 AM
Connecting to Access via OLE-DB mairejo Access 3 October 26th, 2004 02:28 PM
Connecting to Access Db mattastic Classic ASP Databases 3 October 14th, 2004 02:32 AM
connecting PHP to MS Access pb7 Beginning PHP 5 September 24th, 2004 05:04 PM





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