Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default SQL and XML...

    Hello, everyone,

    I would like to know if it is possible to execute SQL queries into an XML
    file, if so, could you send me an example....

    Thanks,

    Raphaël Désalbres


    Raphaël Désalbres Guest

  2. #2

    Default SQL and XML...

    Hi Rafel,

    I think you are looking for SQLXML.SQLXML enables XML
    support for your SQL Server Database. It allows developers
    to bridge the gap between XML and relational data. You can
    create XML View of your existing relational data and work
    with it as if it was an XML file. SQLXML allows you to:
    ·Build Web Services with SQL Server 2000
    ·Build websites to publish data from SQL Server
    ·Query relational database with XPath
    ·Update relational data as if it was XML
    ·Load XML into SQL Server
    ·Query SQL Server via URLs, OLEDB/ADO or .NET Managed
    Classes

    Please refer the following link for more details.
    [url]http://www.microsoft.com/downloads/details.aspx?[/url]
    FamilyID=4023deea-f179-45de-b41d-
    84e4ff655a3b&DisplayLang=en

    regards
    Sreejumon[MVP]
    DOTNET makes IT happen


    >-----Original Message-----
    >Hello, everyone,
    >
    >I would like to know if it is possible to execute SQL
    queries into an XML
    >file, if so, could you send me an example....
    >
    >Thanks,
    >
    >Raphaël Désalbres
    >
    >
    >.
    >
    Sreejumon[MVP] Guest

  3. #3

    Default SQL and XML...

    SqlCommand sqlCmd = new SqlCommand("Procedurename",
    sqlConnectionObject);
    XmlReader reader = sqlCmd.ExecuteXmlReader();
    XmlDocument xmlDoc = new XmlDocument();
    xmlDoc.Load(reader);
    xmlDoc.Save(@"c:\xmlFile.xml");
    >-----Original Message-----
    >Hello, everyone,
    >
    >I would like to know if it is possible to execute SQL
    queries into an XML
    >file, if so, could you send me an example....
    >
    >Thanks,
    >
    >Raphaël Désalbres
    >
    >
    >.
    >
    M Willis Guest

  4. #4

    Default Re: SQL and XML...

    Hello,

    I appreciate very much your help but I would actually need the VB code not
    C#...

    Best wishes,

    Raphaël Désalbres

    "M Willis" <magen@sprynet.com> escreveu na mensagem
    news:012a01c34002$bfd0cbb0$a501280a@phx.gbl...
    SqlCommand sqlCmd = new SqlCommand("Procedurename",
    sqlConnectionObject);
    XmlReader reader = sqlCmd.ExecuteXmlReader();
    XmlDocument xmlDoc = new XmlDocument();
    xmlDoc.Load(reader);
    xmlDoc.Save(@"c:\xmlFile.xml");
    >-----Original Message-----
    >Hello, everyone,
    >
    >I would like to know if it is possible to execute SQL
    queries into an XML
    >file, if so, could you send me an example....
    >
    >Thanks,
    >
    >Raphaël Désalbres
    >
    >
    >.
    >

    Raphaël Désalbres Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139