srv_run

Starts an Open Data Services server application.


Important This Open Data Services function or macro is only supported in Microsoft® SQL Server™ version 7.0 for backward compatibility.


For more information about Open Data Services functions or macros supported for backward compatibility, see Open Data Services (Level 3).

Syntax

int srv_run ( SRV_SERVER * server );

Arguments
server
Is a pointer to the SRV_SERVER structure. Use srv_init to get this pointer.
Returns

SRV_STOP for a stopped server. Returns FAIL if the server cannot be run.

Remarks

When started, the server waits for a client request, calls the appropriate event handler to process the request, and then continues waiting. The srv_run function does not return until the server has been stopped by a SRV_STOP event.

If a server has stopped, you must use srv_init to reinitialize it before you can restart it.

See Also
srv_config srv_init

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.