There are four sample projects included with the SQL Anywhere .NET Data Provider. They are:
SimpleCE A .NET Compact Framework sample project for Windows CE that demonstrates a simple listbox that is filled with the names from the Employees table when you click the Connect button.
SimpleWin32 A .NET Framework sample project for Windows that demonstrates a simple listbox that is filled with the names from the Employees table when you click the Connect button.
SimpleXML A .NET Framework sample project for Windows that demonstrates how to obtain XML data from SQL Anywhere via ADO.NET.
TableViewer A .NET Framework sample project for Windows that allows you to enter and execute SQL statements.
For tutorials explaining the sample projects, see Tutorial: Using the SQL Anywhere .NET Data Provider.
NoteIf you installed SQL Anywhere in a location other than the default installation directory (C:\Program Files\SQL Anywhere 10), you may receive an error referencing the Data Provider DLL when you load the sample projects. If this happens, add a new reference to iAnywhere.Data.SQLAnywhere.dll. There are two versions of the Data Provider, one that supports the .NET Framework 1.x and one that supports the .NET Framework 2.0. The 1.x Data Provider for Windows is located in install-dir\Assembly\v1\iAnywhere.Data.SQLAnywhere.dll. The 2.0 Data Provider for Windows is located in install-dir\Assembly\v2\iAnywhere.Data.SQLAnywhere.dll. Windows CE versions of the provider are located under install-dir\ce\Assembly for each supported Windows CE hardware platform. For instructions on adding a reference to the DLL, see Adding a reference to the Data Provider DLL in your project. |