Specifying Connection Settings

You specify the information needed to connect to a server and log in to a relational database on the Connection Settings tab of the Scenario Properties dialog box. Stylus Studio displays this dialog box automatically when you open a new DB-to-XML data source. (You can also display the Scenario Properties dialog box manually. See Opening the Scenario Properties Dialog Box.)

Figure 314. DB-to-XML Data Source Scenario

The connection settings you specify on the Connection Settings tab of the Scenario Properties dialog box are saved with the DB-to-XML data source.

This section covers the following topics:

Connection Settings Vary

Connection settings vary from database to database, but they typically include the following:

  • The type of database to which you want to connect. You can connect to one of the default relational databases supported by Stylus Studio (Oracle, MS SQL Server, Informix, and so on), or you can use DataDirect SequeLink to connect to any ODBC database you specify.
  • The server URL and other connection parameters. In addition to the server's location, connection parameters can include the server name, the port through which the connection is established, and other information, such as a server ID (SID).
  • The username and password required to log in to the database.

Choosing a Database

Stylus Studio allows you to connect to

  • Any of a number of natively supported relational databases, such as Oracle, Microsoft SQL Server, Sybase, Informix, and IBM DB2.
  • Any ODBC-compliant database configured as a DataDirect SequeLink server.

If you want to connect to one of the relational databases supported by Stylus Studio, simply select the database from the Database Type drop-down list. If you want to use a database that is not natively supported, select DataDirect SequeLink.

Using SequeLink

You can use DataDirect SequeLink to connect to any database that complies with the Microsoft Open Database Connectivity (ODBC) specification. This process involves:

1. Installing DataDirect SequeLink Server. (Stylus Studio is automatically configured as a SequeLink client when you install it.)
2. Selecting DataDirect SequeLink as the Database Type for your DB-to-XML data source.

SequeLink product software and documentation are in the \SequeLink directory where you installed Stylus Studio ( c:\Program Files\Stylus Studio\SequeLink, for example). See the Stylus Studio Release Notes for information on installing SequeLink Server.

Using the Server URL Field

You use the Server URL field to identify the server hosting the database to which you want to connect, the port to use, and any other required or optional parameters. For example, the string used to connect to a Microsoft SQL Server database might look like this:

The specific syntax of the string you enter in the Server URL field varies based on database type. Consult your database documentation for information regarding connectivity syntax and optional parameters.

Tip

 

Stylus Studio populates the Server URL field with a default string appropriate for the database you specify in the Type field.

Username and Password

You use the Username and Password fields to specify the database user you want to associate with this DB-to-XML data source.

Note

 

The permissions of the user you specify dictate the types of operations that can be performed by the SQL/XML on the database. For example, if you specify a user with read-only permissions, the DB-to-XML data source will not be able to perform any INSERT or UPDATE operations.

 
Free Stylus Studio XML Training: