Running Simple Sample Project without Visual Studio

Review the instructions to run simple sample project without Microsoft Visual Studio.

  1. From a DOS prompt, go to the appropriate sample directory under <install dir>\Samples.
  2. Add the directory with .NET Framework 2.0 binaries to your system path.
  3. Verify that the dll directory under Adaptive Server ADO.NET Data Provider installation directory is included in the system path and the LIB environment variable.
    The default installation directory is C:\Sybase\DataAccess\ADONET\dll for Adaptive Server ADO.NET Data Provider, 32-bit and C:\Sybase\DataAccess64\ADONET\dll for Adaptive Server ADO.NET Data Provider, 64-bit.
  4. Compile the sample program using the supplied build script called build.bat.
  5. To run the program, enter:
    simple.exe

    The AseSample dialog box appears.

  6. In the AseSample dialog box, provide connection information for an Adaptive Server with the sample pubs2 database and then click Connect.

    The application connects to the sample pubs2 database and puts the last name of each author in the dialog box.

  7. Click the X in the upper right corner of the window to terminate the application and disconnect from the pubs2 database.