Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

OLE DB Sample

This sample demonstrates how to use a Microsoft Access database from C#. It shows how you can create a dataset and add tables to it from a database. The BugTypes.mdb database used in the sample program is a Microsoft Access 2000 .mdb file.

This sample contains the source code for the OLE DB Tutorial.

Building and Running the Sample Within Visual Studio

To build and run the OLE DB sample

  1. Open the solution (OleDBSample.sln).
  2. From the Debug menu, click Start Without Debugging.

Building and Running the Sample from the Command Line

To build and run the OLE DB sample

  • Type the following at the command prompt:
    csc oledbsample.cs

See Also

OLE DB Tutorial | Tutorial Samples

© 2015 Microsoft