Returning parameters in a language data stream

There is no notion of parameters in a language data stream. An Open Server application equipped to parse a text stream, however, can “construct” return parameters from the incoming stream. It can then load the parameters with data and send them back using the describe/bind/transfer procedures.

For example, a client can send a Transact-SQL stored procedure query that includes return parameters. An Open Server application expecting this query can parse for the string “output = @var” (where var is the placeholder for the return parameter) and send back format information and data for var.

An application can call srv_descfmt with cmd set to CS_SET and type set to SRV_RPCDATA from within a language event handler only.