SDAC

TMSSQL.ExecuteForXML Method

Provides data in readable view for the SELECT statements written using the FOR XML clause.

Class

TMSSQL

Syntax

procedure ExecuteForXML(Stream: TStream; OutputEncoding: TMSOutputEncoding); overload;

Parameters
Stream
Holds the stream to read data from.
OutputEncoding
Holds the encoding in which the result will be returned.

Remarks

SQL Server returns data in a specific format when queries with the FOR XML clause are opened using the TDataSet.Open method. In order to obtain data in readable view for the SELECT statements written using the FOR XML clause, you should use one of these overloaded procedures.

The TMSSQLOutputEncoding type is declared in the MSAccess unit.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback