About 1,410,000 results
Open links in new tab
  1. How to export XML using a SQL Server query? - Stack Overflow

    If you only need to store the XML and not do anything else to it, this is probably the easiest way to accomplish this - using straight simple ADO.NET: _con.Open(); string result = …

  2. Working with XML Data in SQL Server - SQL Shack

    Oct 11, 2019 · In this article, we will see how we can work with XML in SQL Server. We will see how to convert tables in SQL into XML, how to load XML documents into SQL Server and how …

  3. Exporting SQL Server Output to Text or XML using PowerShell

    Oct 25, 2007 · In this article, we have learned how to use PowerShell cmdlets in conjunction with the SQL Server client and output redirection to export the output of a SQL Server query to a …

  4. sql server - Exporting results to XML - Database Administrators …

    Oct 2, 2015 · Part 2: Exporting to a File. This can be done rather easily with a simple SQLCLR function to save the contents of a variable (or query) into a text file. SqlXml XmlData) try. …

  5. Exploring XML Data Parsing in T-SQL Server - PiEmbSysTech

    Feb 25, 2025 · XML data parsing in T-SQL Server is a critical technique for extracting and manipulating data stored in XML format. XML is widely used for representing hierarchical data …

  6. Querying XML Data in SQL Server - Chad Callihan

    Mar 13, 2021 · There are multiple ways to query and search XML data in SQL Server and today I want to go through some examples.

  7. XML Output is Truncated in SQL - Stack Overflow

    Nov 23, 2015 · I've solved this by getting the output programatically with c#, with SqlDataReader. This worked for me (SSMS 2012): Tools > Options > Query Results > SQL Server > Results to …

  8. Working with XML data in SQL Server

    Sep 10, 2024 · Run the following query to extract the name of the patients: FROM @Records.nodes('Patients/Patient') AS Rec(Pat); Explaining the code: Now, we will retrieve …

  9. Use FOR XML Results in Application Code - SQL Server

    Oct 17, 2024 · This functionality allows you to do the following when FOR XML query results can be used in XML application code: Query SQL tables for instances of XML Data (SQL Server) …

  10. sql server - Help with SQL Query to XML output - Database ...

    I have the following query: [ID] AS [NewID] , ( CASE WHEN LEN([MiddleName]) > 0 THEN. [LastName] + ', ' + [FirstName] + ' ' + LEFT([MiddleName],1) + '.' ELSE. [LastName] + ', ' + …

  11. Some results have been removed
Refresh