XML
  Home arrow XML arrow Page 3 - Extracting XML content from an XML file fr...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
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? 
XML

Extracting XML content from an XML file from within SQL Server 2000 using Managed Code
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2005-11-29

    Table of Contents:
  • Extracting XML content from an XML file from within SQL Server 2000 using Managed Code
  • Developing the .NET component
  • Deploying the .NET component
  • Testing the .NET component from within SQL Server 2000
  • Creating a stored function to call the .NET component and testing it

  • 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


    Extracting XML content from an XML file from within SQL Server 2000 using Managed Code - Deploying the .NET component


    (Page 3 of 5 )

    In the previous section, you just completed developing the component.  Now you need to register as COM component and also deploy into GAC cache.  Proceed with the following steps to do this:

    • If you didn’t open your Visual Studio command prompt, do it by going to Start -> Programs -> Microsoft Visual Studio.NET 2003 -> Visual Studio.NET tools -> Visual Studio.NET 2003 Command Prompt.
    • Go to the “bin” folder of your project folder (which is “Utility”), using the command prompt.
    • Type the following command to register the assembly as COM component:

    Regasm /tlb:Utility Utility.dll

    • After receiving a successful message, again type the following command to get the component registered within GAC cache.

    gacutil /I Utility.dll

    The screen should look something like the following (Fig1):

    That completes your deployment. 

    In case you want to unregister the component (say you may want to modify the code after successful registration), you can use the following commands (separately) to do the same (from the same bin folder):

    gacutil /u Utility
    regasm /unregister Utility.dll

    More XML Articles
    More By Jagadish Chaterjee


       · Hello, did you ever work with Managed code with SQL Server 2000 (together with...
     

    XML ARTICLES

    - Datatypes and More in RELAX NG
    - Providing Options in RELAX NG
    - An Introduction to RELAX NG
    - Path, Predicates, and XQuery
    - Using Predicates with XQuery
    - Navigating Input Documents Using Paths
    - XML Basics
    - Introduction to XPath
    - Simple Web Syndication with RSS 2.0
    - Java UI Design with an IDE
    - UI Design with Java and XML Toolkits
    - Displaying ADO Retrieved Data with XML Islan...
    - Widget Walkthrough
    - Introduction to Widgets
    - The Why and How of XML Data Islands







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway