Permits a database server to act as a Web server.
CREATE SERVICE service-name-string TYPE service-type-string [ attributes ] [ AS statement ] attributes: [ AUTHORIZATION { ON | OFF } ] [ SECURE { ON | OFF } ] [ USER { user-name | NULL } ] [ URL [ PATH/ ] { ON | OFF | ELEMENTS } ] [ USING { SOAP-prefix | NULL } ] service-type-string: { 'RAW ' | 'HTML ' | 'XML ' | 'SOAP ' | 'DISH ' }
Run production systems with authorization turned on. Grant permission to use the service by adding users to a role.
All services that are run in production systems must define a statement. The statement can be NULL only if authorization is enabled.
CREATE SERVICE tables TYPE 'HTML' AUTHORIZATION OFF USER DBA AS SELECT * FROM SYS.ISYSTAB
After executing this statement, use any Web browser to open the URL http://localhost/tables.
The CREATE SERVICE statement causes the database server to act as a web server. A new entry is created in the SYSWEBSERVICE system table.
SQL—ISO/ANSI SQL compliant.
Sybase—Not supported by Adaptive Server Enterprise.
Requires the MANAGE ANY WEB SERVICE system privilege.