MS SQL Server
  Home arrow MS SQL Server arrow Page 2 - .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 
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

.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: creation


    (Page 2 of 6 )

    Once you have created the database and tables as shown in the previous section, complete the following steps to create a .NET CLR stored procedure in a SQL Server 2005 database:

    • Go to Start -> Programs -> Microsoft Visual Studio 2005 -> Microsoft Visual Studio 2005.
    • Go to File -> New -> Project.
    • Within the “New Project” dialog box, select "database" for the "Project Type" in the “Visual Basic” tree and select “SQL Server Project” as the template.  Provide the name “SampleAllInOne.”  By this time, the dialog box should look something like the following (Fig 6).
             

     

    • Once you click “OK”, you will be provided with the “New Database Reference” dialog.  Provide your own instance name, select the database “Sample” (created in previous section) and test the connection (Fig 7).

       
    • Once testing is successfully completed, click on “OK” to create the project.
    • You will be provided with a dialog box, which asks you to enable CLR debugging or not.  Please click on “Yes” for that (Fig 8).

    • Using the “Solution explorer,” right click on the “SampleAllInOne” Project, and go to Add-> Stored Procedure (to create a new stored procedure) (Fig 9). 

    • You will be presented with the “Add New Item” dialog box.  Within that dialog box, select “Stored Procedure” as template and provide the name as “IncSalaries” and finally click on “Add” (Fig 10).

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