MS SQL Server
  Home arrow MS SQL Server arrow Page 3 - XML and the SQL 2000 Server, Part 4: Intro...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MS SQL SERVER

XML and the SQL 2000 Server, Part 4: Introducing SqlXml 3.0
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 2 stars2 stars2 stars2 stars2 stars / 11
    2005-06-01

    Table of Contents:
  • XML and the SQL 2000 Server, Part 4: Introducing SqlXml 3.0
  • XML data using Dataset
  • Enter SQLXML 3.0
  • Exploring the SqlXmlCommand Class
  • SqlXmlCommand's RootTag Property
  • SqlXmlCommand's NameSpace Property
  • SqlXmlCommand's ExecuteXMLReader
  • Using CommandType Template
  • Using the BasePath and XSLPath properties

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    XML and the SQL 2000 Server, Part 4: Introducing SqlXml 3.0 - Enter SQLXML 3.0


    (Page 3 of 9 )

    In early Jan 2002, with SQLXML3.0 release, a number of additional functionalities for XML support of SQL 2000 were introduced. Briefly, the following additional features were added, but in this tutorial we look mainly at data access using SQLXML3.0 with the Visual Studio .NET 2003 IDE.

    • Web Services (SOAP) Support
    • Client-side FOR XML
      Server processed queries were xml formatted on client side
    • XML Schema Definition language (XSD)
      Create XML view of relational data
    • Updategrams
      DML procedures with an UpdateGram
    • Bulk Loading XML data
    • Support for Microsoft .NET Framework
      SQLXML Managed Classes can be referenced from within
      Microsoft .NET Framework.

      The DiffGram format is supported.

    XML data access using SqlXmlCommand Class

    SQLXML 3.0 provide support for applications to access XML data from an instance of SQL 2000 server, port the data to the Microsoft.NET environment,process data, and send back the data to the SQL Server. These are effectively carried out obtaining support from the Microsoft Managed Classes. When SQLXML3.0 is installed, the Microsoft.Data.SqlXml libararies can be accessed from the application by adding a reference. In the codes that follow, the imports statement would make a reference to Microsoft.Data.SQLXml. The SQLXML managed classes object model has the following objects, of which the SqlXmlCommand class will be explored in detail.

    • SqlXmlCommand
    • SqlXmlParameter
    • SqlXmlAdapter

    Properties and methods supported by the SqlXmlCommand[Microsoft.Data.SqlXml.SqlXmlCommand] object are shown followed by the ADO.NET's SQLCommand [System.Data.SqlClient.SqlCommand]object in the next two pictures. A number of methods and properties[red rectangles in sqlxmlcommand object] add a great deal of support for XML based applications.The SqlXmlCommand class will be explored in detail with concrete examples.

    SQLXMLCOMMAND OBJECT

    SQLCOMMAND Object

    Analogous to the SQLCommand's CommandType, there is a SQLXMLCommand's CommandType, notice the differences in the pictures shown. It is clear that, if SqlCommand is tailored for relational data, SqlXmlCommand is well suited for handling XML.
    SQLCommandType
    SQLXMLCommandType

    More MS SQL Server Articles
    More By Jayaram Krishnaswamy


     

    MS SQL SERVER ARTICLES

    - Completing the Introduction to Transact-SQL
    - A Brief Introduction to Transact-SQL
    - Lookups and Blocking Bad Data
    - Field Validation Rules for Blocking Bad Data
    - Using Masks to Block Bad Data
    - Blocking Bad Data
    - Using @@ROWCOUNT and TABLE Variables for Dat...
    - How to Use Variables, IF and CASE in Databas...
    - Creating Important Aspects of Notification S...
    - Working wth Variables in Database Interactio...
    - Delving Deeper into Notification Services
    - Notification Services
    - Building a Multi-table Report with SQL 2005 ...
    - A Secure Way of Building Connection Strings
    - Transferring a Database Using the SSIS Desig...





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT