Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft