PC Review


Reply
Thread Tools Rate Thread

Access 2007 file not accessible

 
 
=?Utf-8?B?U3RldmVU?=
Guest
Posts: n/a
 
      29th Apr 2007
I am trying to write an application using VS 2005 that accesses an Access
database. Unfortunately, VS 2005 doesn't seem to understand the new Access
2007 file extention. Can VS 2005 use the new Access 2007 file format?


--
-----------
Thanks,
Steve
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3RldmVU?=
Guest
Posts: n/a
 
      30th Apr 2007
I was able to get the Database to be seen by VS2005, but have now run into
another road block. Can someone help me?!!

Here is the situtaion.

I am trying to write a small application that accesses data within an Access
2007 database file with an extention .ACCDB file. I am running Vista on my
computer and using Visual Studio 2005. I am having major difficulty
connecting to the database and actually reading data from it.

The default setting in the app.config file for the connectionstring created
by VS2005 is connectionstring="DSN=MS Access Database” and
providerName="System.Data.Odbc". This value does not work. It generates the
error: {"ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's
SQLSetConnectAttr failed"}.

I did some investigation and then tried connectionString="driver={Microsoft
Access Driver (*.accdb)};DBQ=GrammarData.ACCDB". This string generated the
error: “ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not
found and no default driver specified”

Both errors occur when the following code is run when the form is loading:
“this.conceptsTableAdapter.Fill(this.grammarDataSet.Concepts”.

Does anyone have an example of how to load and read an Access database with
an extension of .ACCDB correctly?

--
-----------
Thanks,
Steve


"SteveT" wrote:

> I am trying to write an application using VS 2005 that accesses an Access
> database. Unfortunately, VS 2005 doesn't seem to understand the new Access
> 2007 file extention. Can VS 2005 use the new Access 2007 file format?
>
>
> --
> -----------
> Thanks,
> Steve

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      1st May 2007
Hi Steve,

From your description, you're encountering some problem about accessing
Office Access 2007 Accdb file in your .net application,correct?

As for your development (windows Vista box), is office 2007 also installed
on that box together with Visual Studio 2005? Based on my research,
accessing office 2007 data files as database require some new driver
components, and the error info you provided also indicate that the driver
is not correctly located. You can find the driver components here:

#2007 Office System Driver: Data Connectivity Components
http://www.microsoft.com/downloads/d...536-8C28-4598-
9B72-EF94E038C891&displaylang=en

And the below web forum thread also discuss on the same question, you can
have a look also:

#How to access the Access 2007 database in VS2005?
http://forums.microsoft.com/MSDN/Sho...48592&SiteID=1

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
=?Utf-8?B?U3RldmVU?=
Guest
Posts: n/a
 
      1st May 2007
Thank you! This did indeed get me access to it.
--
-----------
Thanks,
Steve


"Steven Cheng[MSFT]" wrote:

> Hi Steve,
>
> From your description, you're encountering some problem about accessing
> Office Access 2007 Accdb file in your .net application,correct?
>
> As for your development (windows Vista box), is office 2007 also installed
> on that box together with Visual Studio 2005? Based on my research,
> accessing office 2007 data files as database require some new driver
> components, and the error info you provided also indicate that the driver
> is not correctly located. You can find the driver components here:
>
> #2007 Office System Driver: Data Connectivity Components
> http://www.microsoft.com/downloads/d...536-8C28-4598-
> 9B72-EF94E038C891&displaylang=en
>
> And the below web forum thread also discuss on the same question, you can
> have a look also:
>
> #How to access the Access 2007 database in VS2005?
> http://forums.microsoft.com/MSDN/Sho...48592&SiteID=1
>
> Hope this helps.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      3rd May 2007
You're welcome

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

 
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
Export from MS Access 2007 to Quickbooks IIF - How can I create a tabdelimited text file from Access 2007? Steve Microsoft Access Macros 2 11th Nov 2009 01:52 PM
Word 2007, Access 2007 mail merge with Workgroup Information File Stapes Microsoft Access 0 18th Apr 2008 03:36 PM
Can't convert Access 2000 file to Access 2007 file. eacantdraft@saintly.com Microsoft Access 1 11th Feb 2007 03:24 AM
File is not accessible. Access is Denied =?Utf-8?B?U3R1?= Windows XP General 5 5th Nov 2006 01:08 PM
i keep getting this when i try to open this file and don't know why any help would be grC:\Documents and Settings\Terry Cooper is not accessible.Access is denied =?Utf-8?B?VC5Db29wZXI=?= Windows XP Accessibility 1 5th Feb 2004 01:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:51 PM.