Adding a reference to the Data Provider assembly

Adding a reference tells Visual Studio .NET which assembly to include to find the code for Adaptive Server ADO.NET Data Provider.

StepsAdding a reference to Adaptive Server ADO.NET Data Provider in a Visual Studio .NET project

  1. Start Visual Studio .NET and open your project.

  2. In the Solution Explorer window, right-click the References folder and choose Add Reference from the pop-up menu.

    The Add Reference dialog box appears.

  3. On the .NET tab, scroll through the list of components until you locate the Sybase.AdoNet2.AseClient or Sybase.AdoNet4.AseClient component. Select this component and click Select.

  4. Click OK.

    If you do not find the Adaptive Server ADO.NET Data Provider assembly listed in the components, browse to locate Sybase.AdoNet2.AseClient.dll or Sybase.AdoNet4.AseClient.dll in the <install dir>\dll directory. Select the DLL and click Open, then click OK.

    Note The default location 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.

    The assembly is added to the References folder in the Solution Explorer window of your project.