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
    oledbsample
    

See Also

OLE DB Tutorial | Tutorial Samples

Show:
© 2014 Microsoft