Setting Export Format Preferences

Specify formats for exporting or saving SQL results to a file, using one of the Save Result or Export Result context menu options in the SQL Results view. You can set preferences for the XML format, column delimiters, and encoding.

To set export format preferences:

  1. Select Window|Preferences from the main menu bar.

    The Preferences dialog box appears.

  2. In the left pane, expand Sybase, Inc, then expand Database Development and select Export Format.

  3. Specify the XML format for saving or exporting SQL results.

    XML Export Format Preferences

    FieldExplanation

    Add XML Header Automatically

    To insert the XML Header string automatically at the beginning of each XML file, select the check box.

    XML Header

    Enter the header string to be inserted at the beginning of the XML file, for example, <?xml version="1.0" encoding="UTF-8"?>.

    Add XML Root Tag Automatically

    To include the contents of the SQL result enclosed in a root tag you specify in the Root Tag field, select the check box.

    Root Tag

    Enter the XML root tag to wrap the SQL results with, for example, resultsets.

    Do not include angle brackets.

  4. Select a default column delimiter from the drop-down.

    If you select User-defined, enter one or more characters in the Delimiter box. Default is semicolon (;).

    Delimiters for Output Formats

    Output formatDelimiter
    Column AlignedUse the same-width font to display the result, and align each column, fill spaces between columns (default)
    Comma SeparatedUse comma to separate columns
    Tab DelimitedUse tab to separate columns
    User-definedUse user-defined string to separate columns
  5. Select a default output encoding.

    If you select Other, choose an encoding from the drop-down. These output encodings are available for all Sybase databases supported by Sybase WorkSpace.

    Output Encoding Options

    EncodingDescription
    cp1252Microsoft® Windows US (ANSI)
    ISO-8859-1ISO 8859-1 Latin 1
    US-ASCIIUS ASCII, with 8-bit data, ISO 646
    UTF-16Unicode UTF-16
    UTF-16BEUnicode UTF-16, big endian
    UTF-16LEUnicode UTF-16, little endian
    UTF-8Unicode UTF-8

Saving Execution Results

Exporting Execution Results

Preferences

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com