Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 70fe875

Browse files
authored
Add clarifying word
1 parent bf7577b commit 70fe875

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/relational-databases/xml/type-directive-in-for-xml-queries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.author: genemi
1717
---
1818
# TYPE Directive in FOR XML Queries
1919
[!INCLUDE [SQL Server Azure SQL Database](../../includes/applies-to-version/sql-asdb.md)]
20-
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] support for the [xml (Transact-SQL)](../../t-sql/xml/xml-transact-sql.md) enables you to optionally request that the result of a FOR XML query be returned as **xml** data type by specifying the TYPE directive. This allows you to process the result of a FOR XML query on the server. For example, you can specify an XQuery against it, assign the result to an **xml** type variable, or write [Nested FOR XML queries](../../relational-databases/xml/use-nested-for-xml-queries.md).
20+
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] support for the [xml (Transact-SQL)](../../t-sql/xml/xml-transact-sql.md) datatype enables you to optionally request that the result of a FOR XML query be returned as **xml** data type by specifying the TYPE directive. This allows you to process the result of a FOR XML query on the server. For example, you can specify an XQuery against it, assign the result to an **xml** type variable, or write [Nested FOR XML queries](../../relational-databases/xml/use-nested-for-xml-queries.md).
2121

2222
> [!NOTE]
2323
> [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] returns XML data type instance data to the client as a result of different server-constructs such as FOR XML queries that use the TYPE directive, or where the **xml** data type is used to return XML instance data values from SQL table columns and output parameters. In client application code, the ADO.NET provider requests this XML data type information to be sent in a binary encoding from the server. However, if you are using FOR XML without the TYPE directive, the XML data comes back as a string type. In any case, the client provider will always be able to handle either form of XML. Note that top-level FOR XML without the TYPE directive cannot be used with cursors.

0 commit comments

Comments
 (0)