|
Home > Online Product Documentation > Table of Contents > How to Create a DB-to-XML Data Source How to Create a DB-to-XML Data SourceTo create a DB-to-XML data source:
1. Select
File > New > DB to XML Data Source from the menu.
Stylus Studio displays the Scenario Properties dialog box.
2. Specify a scenario name (or accept the default).
3. Specify the information needed to connect to the database server and log in to the database. This information includes
See Specifying Connection Settings if you need help with this step. If you selected DataDirect SequeLink for the database type, see <xHyperlink>Using DataDirect SequeLink as a DB-to-XML Data Source. Alternative: If you have already defined a default connection setting and you want to use it for this scenario, click the Use Default Connection field.
4. Click
OK to save the scenario.
Stylus Studio automatically connects to the database and logs you into the server. The database schema, table, view, and column information for the database you specified in the scenario appears in the schema pane of the DB-to-XML Data Source Editor.
5. Compose the SQL/XML SELECT statement to query the database. (UPDATE and INSERT statements, which write modified data back to the database, are optional.) See
Composing SQL/XML in Stylus Studio.
6. Click the
Execute Query button (
7. Optionally (if you have written SQL/XML to write new or modified data to the database), save the XML document returned by the SQL/XML query to write data back to the database. See
Working with Relational Data as XML.
The remainder of this chapter describes these steps in greater detail. |
Retail Companies That Use Stylus Studio
Stores and XML data can get very crowded. That's why retail companies use Stylus Studio to simplify their data. With the power of Stylus Studio these top retail companies are at the front of the line when it comes to XML!
Translating X12 Documents to XML
The X12 to XML Converter is a built-in function of the adapter library. The XML that is generated is well commented and indented, and can be used anywhere XML is normally used — with XML Schemas, XSLT, XQuery, etc.
SQL Server Tools
SQL Server Tools in Stylus Studio simplify working with relational and XML data including exporting data from a SQL Server database into XML and importing XML data back into SQL Server. Supports Microsoft SQL Server 2000 and Microsoft SQL Server 2005