Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Explorer » Using the SQL Anywhere Explorer

Configuring the SQL Anywhere Explorer Next Page

Adding database objects using the SQL Anywhere Explorer


In Visual Studio .NET, when you drag certain database objects from the SQL Anywhere Explorer and drop them onto Visual Studio .NET designers, the IDE automatically creates new components that reference the selected objects. You can configure the settings for drag and drop operations by choosing Tools > Options in Visual Studio .NET.

For example, if you drag a stored procedure from the SQL Anywhere Explorer onto a Windows form, the IDE automatically creates a Command object preconfigured to call that stored procedure.

The following table lists the objects you can drag from the SQL Anywhere Explorer, and describes the components created when you drop them onto a Visual Studio .NET Forms Designer or Code Editor.

ItemResult
Data connectionCreates a data connection.
Table Creates an adapter.
ViewCreates an adapter.
Stored procedure or functionCreates a command.
To create a new data component using the SQL Anywhere Explorer
  1. Open the form or class that you want to add a data component to.

  2. In the SQL Anywhere Explorer, select the object you want to use.

  3. Drag the object from the SQL Anywhere Explorer to the Forms Designer or Code Editor.