Database
  Home arrow Database arrow Using ADO with the SQL Native Client
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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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? 
DATABASE

Using ADO with the SQL Native Client
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 7
    2006-09-25

    Table of Contents:
  • Using ADO with the SQL Native Client
  • Adding Library References and ActiveX Objects
  • Exploring the SQL Native Client
  • Displaying XML data retrieved from SQL 2005

  • 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


    Using ADO with the SQL Native Client


    (Page 1 of 4 )

    SQL Native Client is a new data access method from Microsoft. It boasts its own dynamic link library. This extends the capabilities of ADO on the SQL Server. This article explores two aspects of this method.

    Introduction

    In an earlier article one of the new features of SQL 2005, namely the Multiple Active Result Sets (MARS) was described with an example where the SQL Native Client OLEDB provider was used. In SQL 2005 Server a new data type, the XML data type, was also added. If you ever need to leverage the new features of SQL 2005 Server in your application, you should consider using the SQL Native Client as the data access provider.

    The SQL Native Client is contained in a single dynamic link library and supports both OLEDB and ODBC interfaces. However the names of these interfaces are different from those used in MDAC. The SQL Native Client supports the For XML clauses in the queries as well as the XML data type.

    In this tutorial two items are explored. First, the methods of connection and command objects when the ADO accesses the database with the SQL Native Client provider are described with an example. Second, an example of connecting to the SQL 2005 server with this provider to execute a "for XML query" and display it with the web browser object is described.

    Again as in the previous tutorial, an MS Access platform will be used in the examples, which necessitates using a form and a command button. The ADO will provide the data from the SQL 2005 Server, the FileSystemObjects takes it to the intranet web root and the web browser will navigate to the intranet URL to display the returned data.

    More Database Articles
    More By Jayaram Krishnaswamy


       · If you are looking for data on SQL 2005 Server, this is the fastest. You may also...
     

    DATABASE ARTICLES

    - Building Applications with Anonymous Types
    - A Closer Look at Anonymous Types
    - Programming with Anonymous Types
    - Converting Your Excel Worksheet into a Worki...
    - Excel Reference
    - Database Programming in C# with MySQL : Usin...
    - Formatting Techniques for Data Access from E...
    - Data Access from Excel VBA
    - Generating a Multiple Table Crystal Report u...
    - ADO and the Command Object
    - On Wiring Up an ADO Data Control
    - Reading and Writing to Files on the Intranet
    - Using ADO Record to Create and Navigate Intr...
    - Using Data Access Pages to Access Data on a ...
    - Using ADO with the SQL Native Client





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek