Collection Contents Index Understanding the Simple sample project Next PDF

SQL Anywhere® Server - Programming
  Tutorial: Using the SQL Anywhere .NET Data Provider
Tutorial: Using the Table Viewer code sample


This tutorial is based on the Table Viewer project that is includecan be found in your SQL Anywhere samples directory in samples-dir\SQLAnywhere\ADO.NET\TableViewer.

For information about the default location of samples-dir, see The samples directory.

The Table Viewer project is more complex than the Simple project. It illustrates the following features:

For more information about how the sample works, see Understanding the Table Viewer sample project.

To run the Table Viewer code sample in Visual Studio .NET
  1. Start Visual Studio .NET.

  2. Choose File>Open>Project.

  3. Browse to samples-dir\SQLAnywhere\ADO.NET\TableViewer and open the TableViewer.sln project.

  4. If you want to use the SQL Anywhere .NET Data Provider in a project, you must add a reference to the Data Provider DLL. This has already been done in the Table Viewer coden the TableViewer.sln project.

  5. If you want to use the SQL Anywhere .NET Data Provider in a project, you must add a reference to the Data Provider DLL. This has already been done in the Table Viewer code sample. You can view the reference to the Data Provider DLL in the following location:

You have now run the application. The next section describes the application code.


Understanding the Table Viewer sample project

Collection Contents Index Understanding the Simple sample project Next PDF