Causes the database server to act as a Web server
ALTER SERVICE service-name [ TYPE service-type-string ] [ attributes ] [ AS statement' ] service-type-string – (back to Syntax) { 'RAW ' | 'HTML ' | 'XML ' | 'SOAP ' | 'DISH ' } attributes – (back to Syntax) [ AUTHORIZATION { ON | OFF } ] [ SECURE { ON | OFF } ] [ USER { user-name | NULL } ] [ URL [ PATH/ ] { ON | OFF | ELEMENTS } ] [ USING { SOAP-prefix | NULL } ]
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' ALTER SERVICE tables AUTHORIZATION OFF USER DBA AS SELECT * FROM SYS.ISYSTABAfter executing these statements, use any Web browser to open the URL http://localhost/tables.