CREATE SERVICE Statement

Permits a database server to act as a Web server.

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

CREATE SERVICE service-name-string 
   TYPE service-type-stringattributes ] [ 
   AS statement ]

service-type-string - (back to Syntax)
   { 'RAW ' 
   | 'HTML ' 
   | 'XML ' 
   | 'SOAP ' 
   | 'DISH ' }

attributes - (back to Syntax)
   AUTHORIZATIONONOFF } ] 
   [ SECUREON  |  OFF } ] 
   [ USERuser-name | NULL } ] 
   [ URL [ PATH/ ] { ON | OFFELEMENTS } ] 
   [ USING { SOAP-prefix | NULL } ]

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

The CREATE SERVICE statement causes the database server to act as a web server. A new entry is created in the SYSWEBSERVICE system table.

In a multiplex, execute CREATE SERVICE on both the coordinator and each secondary node that will act as a web server.

Standards

(back to top)

  • SQL—ISO/ANSI SQL compliant.
  • SAP Sybase Database product—Not supported by Adaptive Server.

Permissions

(back to top)

Requires the MANAGE ANY WEB SERVICE system privilege.

Related reference
ALTER SERVICE Statement
DROP SERVICE Statement