MS SQL Server
  Home arrow MS SQL Server arrow Page 4 - .NET CLR Programming with SQL Server 2005 ...
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 
Moblin 
JMSL Numerical Library 
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

.NET CLR Programming with SQL Server 2005 Made Simple
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 14
    2006-08-30

    Table of Contents:
  • .NET CLR Programming with SQL Server 2005 Made Simple
  • .NET CLR stored procedure in SQL Server 2005 database: creation
  • .NET CLR stored procedure in SQL Server 2005 database: Coding
  • .NET CLR stored procedure in SQL Server 2005 database: Testing
  • .NET CLR user-defined function in SQL Server 2005 database
  • .NET CLR user-defined aggregate in SQL Server 2005 database

  • 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


    .NET CLR Programming with SQL Server 2005 Made Simple - .NET CLR stored procedure in SQL Server 2005 database: Testing


    (Page 4 of 6 )

     

    To test the above stored procedure, follow the following steps:

    • Using “Solution Explorer,” open “test.sql” in “test scripts” (Fig 11).

    • Go to the last line and modify the code as follows:

    --select 'To run your project, please edit the Test.sql file in
    your project. This file is located in the Test Scripts folder in
    the Solution Explorer.'

    exec IncSalaries 50

    • Go to Start -> Programs -> Microsoft SQL Server 2005 -> Configuration Tools -> SQL Server Surface Area Configuration.
    • Within the window, click on “Surface Area Configuration for Features” (Fig 12). 


       
    • Enable the CLR integration as shown (Fig 13).

    • Press F5 to execute the whole solution.  If it executed with any errors, everything gets displayed in the “Output” window.
    • If the stored procedure executes successfully, you should be able to see all the salaries increased by 50.

    More MS SQL Server Articles
    More By Jagadish Chaterjee


       · Hello guys! This is a simple all-in-one contribution in dealing with .NET CLR...
     

    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 2 hosted by Hostway
    Stay green...Green IT