The DB-to-XML Data Source Editor

You use the DB-to-XML data source editor to specify database connectivity settings, and to compose the SQL/XML (queries and other actions) that you want to execute on the server.

Figure 274. DB-to-XML Data Source Editor

Tip

 

Once you connect to a server, Stylus Studio displays the databases, tables, views, and columns on the right side of the editor. When composing your SQL statements, you can drag and drop tables, views, and columns from the database schema tree into the SQL/XML editor.

SQL/XML Editor

The SQL/XML editor is on the left side of the DB-to-XML data source editor. It consists of two tabs, SELECT and UPDATE, which you use to compose SQL/XML SELECT and, optionally, UPDATE and INSERT statements. You can type directly in the editor, or you can use drag-and-drop to automatically compose SQL/XML statements.

See Composing SQL/XML in Stylus Studio to learn more about using the SQL/XML editor.

Database Schema Tree

The database schema tree is on the right side of the DB-to-XML data source editor. Once you have established a connection to the database specified in the scenario, Stylus Studio displays a tree diagram of the database schema.

Figure 275. Database Schema Tree

The database schema tree is displayed by default. You can hide it by clicking the Show/Hide Database Schema button ( ).

Note

 

Once the connection with the server has been established and the database is located, Stylus Studio drops the connection to the server. You can reconnect to the database to refresh the database schema tree by selecting DB-to-XML > Load Database Schema from the menu bar.

Information in the schema tree is displayed in a hierarchical fashion, starting with the server you specified in the scenario. Tables, views, and columns are displayed in database order; column data types are displayed in the Type column.

Working with Relational Data

Stylus Studio can automatically create valid SELECT, INSERT, and UPDATE SQL/XML statements based on the objects you select from the database schema tree. In addition, your DB-to-XML data source can contain any valid SQL/XML statement defined on the SELECT or UPDATE tabs. The actions that can be performed by the SQL/XML you define in your DB-to-XML data source are limited only by the permissions of the username you use to log in to the database. See Composing SQL/XML in Stylus Studio for more information on this topic.

 
Free Stylus Studio XML Training: