Permits a database server to act as a Web server.
CREATE SERVICE service-name TYPE service-type-string [ attributes ] [ AS statement ]
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.
If authorization is ON, all users must provide a user name and password. Optionally, you can limit the users that are permitted to use the service by providing a user or role name using the USER clause. If the user name is NULL, all known users can access the service.
The default value is ON. 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.
SQL—ISO/ANSI SQL compliant.
Sybase—Not supported by Adaptive Server Enterprise.
Requires the MANAGE ANY WEB SERVICE system privilege.