Microsoft Access
  Home arrow Microsoft Access arrow Connecting to a Microsoft Access database ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
Moblin 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MICROSOFT ACCESS

Connecting to a Microsoft Access database with ASP.NET
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 47
    2006-04-04

    Table of Contents:
  • Connecting to a Microsoft Access database with ASP.NET
  • Connecting to a Microsoft Access database directly using ASP.NET
  • Manipulating a Microsoft Access database directly using ASP.NET
  • Connecting to a Microsoft Access database through ODBC using ASP.NET
  • Manipulating a Microsoft Access database through ODBC using ASP.NET
  • Connecting to a password protected Microsoft Access database directly using ASP.NET

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!

    Connecting to a Microsoft Access database with ASP.NET


    (Page 1 of 6 )

    In this article, I shall discuss different methodologies for connecting to a Microsoft Access database using ASP.NET without any errors.
    A downloadable file for this program is available here.

    Every .NET programmer knows how to connect to Microsoft SQL Server 2000/2005 using ASP.NET very easily.  Connecting to (and working with) a Microsoft Access database is not as simple as MS SQL Server.  It is always possible to run into errors when working with Microsoft Access together with ASP.NET. 

    It all starts with security.  MS SQL Server has its own security policies, and it is a concrete RDBMS when compared to MS Access.  Connecting to a Microsoft Access 2003 database is very easy, but when you try to manipulate some data within the database, your application may run into simple errors.  I try to address the most important issues in this article.

    In this article, I shall demonstrate how to connect and work with a Microsoft Access 2003 database in a very easy manner, with several possibilities.  For the sake of this demonstration, I simply created a database using Microsoft Access 2003 with only one table, “emp,” having fields “empno,” “ename,” “sal” and “deptno.”  I added a few rows to the same table and saved the database with the file name “MyDB.mdb” in the path “c:\AccessDB”. 

    As you can see, I didn’t save the MS Access DB file in any virtual directory (like “c:\inetpub\wwwroot”) where my ASP.NET application generally lives!  It is strongly recommended to have the database stay outside any virtual directory (due to several security considerations).

    I enclosed the source code in the form of a single file (“.zip” file).  You need to extract the folders from the zip and configure virtual directories on your own.  I developed these applications using Microsoft Windows Server 2003 Standard Edition with Microsoft Visual Studio.NET 2003 Enterprise Architect and Microsoft Access 2003.

    More Microsoft Access Articles
    More By Jagadish Chaterjee


       · Hello guys, now you can feel free in connecting to MS Access from within ASP.NET. ...
       · i am working on asp.net applications when i am trying to access MSACCESS database it...
       · hello sir,i am working on asp.net , i tried to implement this posting for...
       · It's Very Nice Article to work with MSAccess DataBase, When database was in the...
       · hello sir how to connect the asp.net with ms access database conntivity with steps...
     

    MICROSOFT ACCESS ARTICLES

    - Linking SQL Express 2005 Tables to MS Access...
    - Working with Access Projects in Access 2007
    - Exploring Access 2007
    - Working with Stored Procedures in an MS Acce...
    - Creating and Using Action Queries
    - Creating Data Access Pages with Charts using...
    - Advanced Ideas using VBA
    - VBA Details
    - Updating Records in MS Access
    - Using ADO`s Record Object with URLs
    - Exporting XML from MS Access 2003
    - Importing XML into MS Access 2003
    - On Using Pass-through Queries in MS Access
    - Distributed Queries in MS Access
    - Configuring a Linked Microsoft Access Server...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway