CREATE SERVICE Statement

Permits a database server to act as a Web server.

Syntax

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

attributes:
   AUTHORIZATIONONOFF } ] 
   [ SECURE ON  |  OFF } ] 
   [ USERuser-name | NULL } ] 
   [ URL [ PATH/ ] { ON | OFFELEMENTS } ] 
   [ USING { SOAP-prefix | NULL } ]

service-type-string: 
   { 'RAW ' 
   | 'HTML ' 
   | 'XML ' 
   | 'SOAP ' 
   | 'DISH ' }

Parameters

Examples

Usage

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

Standards

  • SQL—ISO/ANSI SQL compliant.

  • Sybase—Not supported by Adaptive Server Enterprise.

Permissions

Requires the MANAGE ANY WEB SERVICE system privilege.

Related reference
ALTER SERVICE Statement
DROP SERVICE Statement