Main Page | Türkçe Blog | Delete Language Cookie 
Daron Yöndem - Access 2007 databases (*.accdb) and ASP.NET
a developers draft...
 Monday, April 02, 2007

The new office suite version 2007 comes with brand-new file formats. One of them is the new Access database format version 2007 with accdb extension. Of course there is a new connection string for those new access databases. You can use the connection string below to access your accdb databases through asp.net.

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\database1.accdb;Persist Security Info=False;

In addition, if you are using passwords to access your database, you can include it in your connection string like below;

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\database1.accdb;Jet OLEDB:Database Password=MyDbPassword;

However, your hosting provider will not be aware of this upgrade or probably you don’t want to install Access 2007 on your server. Actually, you don’t need to. Just install 2007 Office System Driver: Data Connectivity Components..

Hope this helps.

Monday, April 02, 2007 10:09:13 AM (GMT Standard Time, UTC+00:00)  #    Comments [0]   ASP.NET 2.0  | 
Copyright © 2010 Daron Yöndem. Tüm hakları saklıdır.